Skip to content

Commit c4ff64c

Browse files
committed
Improve a regex expression
1 parent 238140c commit c4ff64c

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
@@ -69,7 +69,7 @@ module.exports = {
6969
}
7070

7171
function containsHTMLEntity(rawStringValue) {
72-
return /&([A-Za-z\d#]+);/.test(rawStringValue);
72+
return /&[A-Za-z\d#]+;/.test(rawStringValue);
7373
}
7474

7575
function containsDisallowedJSXTextChars(rawStringValue) {

0 commit comments

Comments
 (0)