rsl/stringex

Character class has duplicated range.

Closed this issue · 3 comments

This is just warning output about redundant regex pattern, but I'm unable to locate it otherwise I would have supplied a patch. It can be reproduced by adding --warnings to .rspec

../stringex-1.5.1/lib/stringex/string_extensions.rb:69: warning: character class has duplicated range
../stringex-1.5.1/lib/stringex/string_extensions.rb:70: warning: character class has duplicated range
../stringex-1.5.1/lib/stringex/string_extensions.rb:71: warning: character class has duplicated range
rsl commented

1.5.1 isn't supported anymore. been a while since that was active. feel free to contribute a patch i guess... but i'm not sure it's worth looking into.

Ok, thanks. I was working with an Spree extension when I saw this. Better to use new stringex version then.

rsl commented

cool. i'm vaguely curious what that was but it was SO many refactors ago that i can't really imagine it being worth looking. heh. do let me know if you see anything similar with 2.x. thanks.