You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Macros4Cuke gem code, I am scanning parts of a Cucumber scenario. String parameters in Cucumber are usually delimited by double quotes. These parameters are detected by the following regular expression:
/"((?:[^\\"]|\\.)*)"/
Surprisingly Rubocop complains when it finds this regexp with the following message:
Prefer single-quoted strings when you don't need string interpolation or special symbols.
I expected this message to apply only to string literals not regexps.
The text was updated successfully, but these errors were encountered:
In the Macros4Cuke gem code, I am scanning parts of a Cucumber scenario. String parameters in Cucumber are usually delimited by double quotes. These parameters are detected by the following regular expression:
/"((?:[^\\"]|\\.)*)"/
Surprisingly Rubocop complains when it finds this regexp with the following message:
Prefer single-quoted strings when you don't need string interpolation or special symbols.
I expected this message to apply only to string literals not regexps.
The text was updated successfully, but these errors were encountered: