agworld/sass — comment on commit 3db1961723fed015ef7e430a689602b60bcfc02d
File: lib/sass/scss/parser.rb line 953
By jasonhutchens:

Any particular reason? Here we're being careful to remove whatever was matched from the end of the string, so `chomp!` seemed ideal. Won't `slice!` fail if `last_group` appears within `res`? As in:

foo = "woolloomooloo" ; foo.slice!("loo") ; puts foo => "woolmooloo"

foo = "woolloomooloo" ; foo.chomp!("loo") ; puts foo => "woolloomoo"