haml-edge 2.3.45 → 2.3.46

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/EDGE_GEM_VERSION +1 -1
  2. data/VERSION +1 -1
  3. data/lib/haml/helpers.rb +2 -2
  4. metadata +6 -6
data/EDGE_GEM_VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.45
1
+ 2.3.46
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.45
1
+ 2.3.46
data/lib/haml/helpers.rb CHANGED
@@ -473,7 +473,7 @@ END
473
473
  # @param text [String] The string to sanitize
474
474
  # @return [String] The sanitized string
475
475
  def html_escape(text)
476
- text.to_s.gsub(/[\"><&]/) { |s| HTML_ESCAPE[s] }
476
+ text.to_s.gsub(/[\"><&]/n) {|s| HTML_ESCAPE[s]}
477
477
  end
478
478
 
479
479
  # Escapes HTML entities in `text`, but without escaping an ampersand
@@ -482,7 +482,7 @@ END
482
482
  # @param text [String] The string to sanitize
483
483
  # @return [String] The sanitized string
484
484
  def escape_once(text)
485
- text.to_s.gsub(/[\"><]|&(?!([a-zA-Z]+|(#\d+));)/) { |s| HTML_ESCAPE[s] }
485
+ text.to_s.gsub(/[\"><]|&(?!(?:[a-zA-Z]+|(#\d+));)/n) {|s| HTML_ESCAPE[s]}
486
486
  end
487
487
 
488
488
  # Returns whether or not the current template is a Haml template.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml-edge
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.45
4
+ version: 2.3.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-10-09 00:00:00 -04:00
13
+ date: 2009-10-11 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -44,11 +44,11 @@ extensions: []
44
44
 
45
45
  extra_rdoc_files:
46
46
  - README.md
47
- - REVISION
48
47
  - VERSION
48
+ - VERSION_NAME
49
+ - REVISION
49
50
  - CONTRIBUTING
50
51
  - MIT-LICENSE
51
- - VERSION_NAME
52
52
  - EDGE_GEM_VERSION
53
53
  files:
54
54
  - rails/init.rb
@@ -257,11 +257,11 @@ files:
257
257
  - init.rb
258
258
  - .yardopts
259
259
  - README.md
260
- - REVISION
261
260
  - VERSION
261
+ - VERSION_NAME
262
+ - REVISION
262
263
  - CONTRIBUTING
263
264
  - MIT-LICENSE
264
- - VERSION_NAME
265
265
  - EDGE_GEM_VERSION
266
266
  has_rdoc: true
267
267
  homepage: http://haml.hamptoncatlin.com/