Skip to content

Commit c93dab8

Browse files
committed
Get rid of unnecessary regex
1 parent 8751e92 commit c93dab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/jsx-curly-brace-presence.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module.exports = {
6060
Object.assign({}, DEFAULT_CONFIG, ruleOptions);
6161

6262
function containsLineTerminators(rawStringValue) {
63-
return /[\n\r\u2028\u2029]+/.test(rawStringValue);
63+
return /[\n\r\u2028\u2029]/.test(rawStringValue);
6464
}
6565

6666
function containsBackslash(rawStringValue) {

0 commit comments

Comments
 (0)