haml-edge 2.3.214 → 2.3.215

Sign up to get free protection for your applications and to get access to all the features.
data/EDGE_GEM_VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.214
1
+ 2.3.215
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.214
1
+ 2.3.215
@@ -149,10 +149,10 @@ module Sass
149
149
  # @return [Boolean]
150
150
  def whitespace?(tok = @tok)
151
151
  if tok
152
- @scanner.string[0...tok.pos] =~ /\s$/
152
+ @scanner.string[0...tok.pos] =~ /\s\Z/
153
153
  else
154
154
  @scanner.string[@scanner.pos, 1] =~ /^\s/ ||
155
- @scanner.string[@scanner.pos - 1, 1] =~ /\s$/
155
+ @scanner.string[@scanner.pos - 1, 1] =~ /\s\Z/
156
156
  end
157
157
  end
158
158
 
@@ -970,6 +970,21 @@ SCSS
970
970
  flim {
971
971
  && {a: b}
972
972
  }
973
+ SCSS
974
+ end
975
+
976
+ # Regression
977
+
978
+ def test_weird_added_space
979
+ assert_equal <<CSS, render(<<SCSS)
980
+ foo {
981
+ bar: -moz-bip; }
982
+ CSS
983
+ $value : bip;
984
+
985
+ foo {
986
+ bar: -moz-\#{$value};
987
+ }
973
988
  SCSS
974
989
  end
975
990
  end
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.214
4
+ version: 2.3.215
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum