Pattern: Redundant split
Regexp argument
Issue: -
Identifies places where split
argument can be replaced from a deterministic regexp to a string.
# bad
'a,b,c'.split(/,/)
# good
'a,b,c'.split(',')
Pattern: Redundant split
Regexp argument
Issue: -
Identifies places where split
argument can be replaced from a deterministic regexp to a string.
# bad
'a,b,c'.split(/,/)
# good
'a,b,c'.split(',')