Skip to content

Files

Latest commit

 

History

History
21 lines (13 loc) · 451 Bytes

Performance-RedundantSplitRegexpArgument.md

File metadata and controls

21 lines (13 loc) · 451 Bytes

Pattern: Redundant split Regexp argument

Issue: -

Description

Identifies places where split argument can be replaced from a deterministic regexp to a string.

Examples

# bad
'a,b,c'.split(/,/)

# good
'a,b,c'.split(',')

Further Reading