Skip to content

Commit

Permalink
Fix another str-slice() bug.
Browse files Browse the repository at this point in the history
Closes #2211
  • Loading branch information
nex3 committed Dec 17, 2016
1 parent a93cc83 commit 393340c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sass/script/functions.rb
Expand Up @@ -1565,7 +1565,7 @@ def str_slice(string, start_at, end_at = nil)
s = string.value.length + s if s < 0
s = 0 if s < 0
e = string.value.length + e if e < 0
e = 0 if e < 0
return Sass::Script::Value::String.new("", string.type) if e < 0
extracted = string.value.slice(s..e)
Sass::Script::Value::String.new(extracted || "", string.type)
end
Expand Down

0 comments on commit 393340c

Please sign in to comment.