--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalid.js --- # Input ```jsx var r = /[πŸ‘]/; var r = /[\uD83D\uDC4D]/; var r = /[πŸ‘]\\a/; var r = /(?<=[πŸ‘])/; var r = /[Á]/; var r = /[Á]/u; var r = /[\u0041\u0301]/; var r = /[\u0041\u0301]/u; var r = /[\u{41}\u{301}]/u; var r = /[❇️]/; var r = /[❇️]/u; var r = /[\u2747\uFE0F]/; var r = /[\u2747\uFE0F]/u; var r = /[\u{2747}\u{FE0F}]/u; var r = /[πŸ‘ΆπŸ»]/; var r = /[πŸ‘ΆπŸ»]/u; var r = /[\uD83D\uDC76\uD83C\uDFFB]/u; var r = /[\u{1F476}\u{1F3FB}]/u; var r = /[πŸ‡―πŸ‡΅]/; var r = /[πŸ‡―πŸ‡΅]/i; var r = /[πŸ‡―πŸ‡΅]/u; var r = /[\uD83C\uDDEF\uD83C\uDDF5]/u; var r = /[\u{1F1EF}\u{1F1F5}]/u; var r = /[πŸ‘¨β€πŸ‘©β€πŸ‘¦]/; var r = /[πŸ‘¨β€πŸ‘©β€πŸ‘¦]/u; var r = /[\uD83D\uDC68\u200D\uD83D\uDC69\u200D\uD83D\uDC66]/u; var r = /[\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F466}]/u; var r = new RegExp("[πŸ‘]", ""); var r = new RegExp('[πŸ‘]', ``); var r = new RegExp("[πŸ‘]", flags); var r = new RegExp("[\uD83D\uDC4D]", ""); var r = new RegExp("/(?<=[πŸ‘])", ""); var r = new RegExp("[Á]", ""); var r = new RegExp("[Á]", "u"); var r = new RegExp("[\u0041\u0301]", ""); var r = new RegExp("[\u0041\u0301]", "u"); var r = new RegExp("[\u{41}\u{301}]", "u"); var r = new RegExp("[❇️]", ""); var r = new RegExp("[❇️]", "u"); var r = new RegExp("[\u2747\uFE0F]", ""); var r = new RegExp("[\u2747\uFE0F]", "u"); var r = new RegExp("[\u{2747}\u{FE0F}]", "u"); var r = new RegExp("[πŸ‘ΆπŸ»]", ""); var r = new RegExp("[πŸ‘ΆπŸ»]", "u"); var r = new RegExp("[\uD83D\uDC76\uD83C\uDFFB]", "u"); var r = new RegExp("[\u{1F476}\u{1F3FB}]", "u"); var r = new RegExp("[πŸ‡―πŸ‡΅]", ""); var r = new RegExp("[πŸ‡―πŸ‡΅]", "i"); var r = new RegExp('[πŸ‡―πŸ‡΅]', `i`); var r = new RegExp('[πŸ‡―πŸ‡΅]', `${foo}`); var r = new RegExp("[πŸ‡―πŸ‡΅]"); var r = new RegExp("[πŸ‡―πŸ‡΅]",); var r = new RegExp("[πŸ‡―πŸ‡΅]", "u"); var r = new RegExp("[\uD83C\uDDEF\uD83C\uDDF5]", "u"); var r = new RegExp("[\u{1F1EF}\u{1F1F5}]", "u"); var r = new RegExp("[πŸ‘¨β€πŸ‘©β€πŸ‘¦]", ""); var r = new RegExp("[πŸ‘¨β€πŸ‘©β€πŸ‘¦]", "u"); var r = new RegExp("[\uD83D\uDC68\u200D\uD83D\uDC69\u200D\uD83D\uDC66]", "u"); var r = new RegExp("[\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F466}]", "u"); var r = new globalThis.RegExp("[❇️]", ""); var r = new globalThis.RegExp("[πŸ‘ΆπŸ»]", "u"); var r = new globalThis.RegExp("[πŸ‡―πŸ‡΅]", ""); var r = new globalThis.RegExp("[\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F466}]", "u"); var r = new window.RegExp("[❇️]", ""); var r = new window.RegExp("[πŸ‘]", ""); var r = new global.RegExp("[❇️]", ""); var r = new global.RegExp("[πŸ‘]", ""); var r = new globalThis.globalThis.globalThis.RegExp("[❇️]", ""); var r = new globalThis.globalThis.globalThis.RegExp("[πŸ‘]", ""); var r = RegExp("[πŸ‘]", ""); var r = window.RegExp("[πŸ‘]", ""); var r = global.RegExp("[πŸ‘]", ""); var r = globalThis.RegExp("[πŸ‘]", ""); ``` # Diagnostics ``` invalid.js:1:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. > 1 β”‚ var r = /[πŸ‘]/; β”‚ ^^^^^^ 2 β”‚ var r = /[\uD83D\uDC4D]/; 3 β”‚ var r = /[πŸ‘]\\a/; i Safe fix: Add unicode u flag to regex 1 β”‚ varΒ·rΒ·=Β·/[πŸ‘]/u; β”‚ + ``` ``` invalid.js:2:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 1 β”‚ var r = /[πŸ‘]/; > 2 β”‚ var r = /[\uD83D\uDC4D]/; β”‚ ^^^^^^^^^^^^^^^^ 3 β”‚ var r = /[πŸ‘]\\a/; 4 β”‚ var r = /(?<=[πŸ‘])/; i Safe fix: Add unicode u flag to regex 2 β”‚ varΒ·rΒ·=Β·/[\uD83D\uDC4D]/u; β”‚ + ``` ``` invalid.js:3:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 1 β”‚ var r = /[πŸ‘]/; 2 β”‚ var r = /[\uD83D\uDC4D]/; > 3 β”‚ var r = /[πŸ‘]\\a/; β”‚ ^^^^^^^^^ 4 β”‚ var r = /(?<=[πŸ‘])/; 5 β”‚ var r = /[AοΏ½]/; i Safe fix: Add unicode u flag to regex 3 β”‚ varΒ·rΒ·=Β·/[πŸ‘]\\a/u; β”‚ + ``` ``` invalid.js:4:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 2 β”‚ var r = /[\uD83D\uDC4D]/; 3 β”‚ var r = /[πŸ‘]\\a/; > 4 β”‚ var r = /(?<=[πŸ‘])/; β”‚ ^^^^^^^^^^^ 5 β”‚ var r = /[AοΏ½]/; 6 β”‚ var r = /[AοΏ½]/u; i Safe fix: Add unicode u flag to regex 4 β”‚ varΒ·rΒ·=Β·/(?<=[πŸ‘])/u; β”‚ + ``` ``` invalid.js:5:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 3 β”‚ var r = /[πŸ‘]\\a/; 4 β”‚ var r = /(?<=[πŸ‘])/; > 5 β”‚ var r = /[AοΏ½]/; β”‚ ^^^^^ 6 β”‚ var r = /[AοΏ½]/u; 7 β”‚ var r = /[\u0041\u0301]/; ``` ``` invalid.js:6:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 4 β”‚ var r = /(?<=[πŸ‘])/; 5 β”‚ var r = /[AοΏ½]/; > 6 β”‚ var r = /[AοΏ½]/u; β”‚ ^^^^^^ 7 β”‚ var r = /[\u0041\u0301]/; 8 β”‚ var r = /[\u0041\u0301]/u; ``` ``` invalid.js:7:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 5 β”‚ var r = /[AοΏ½]/; 6 β”‚ var r = /[AοΏ½]/u; > 7 β”‚ var r = /[\u0041\u0301]/; β”‚ ^^^^^^^^^^^^^^^^ 8 β”‚ var r = /[\u0041\u0301]/u; 9 β”‚ var r = /[\u{41}\u{301}]/u; ``` ``` invalid.js:8:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 6 β”‚ var r = /[AοΏ½]/u; 7 β”‚ var r = /[\u0041\u0301]/; > 8 β”‚ var r = /[\u0041\u0301]/u; β”‚ ^^^^^^^^^^^^^^^^^ 9 β”‚ var r = /[\u{41}\u{301}]/u; 10 β”‚ var r = /[❇�]/; ``` ``` invalid.js:9:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 7 β”‚ var r = /[\u0041\u0301]/; 8 β”‚ var r = /[\u0041\u0301]/u; > 9 β”‚ var r = /[\u{41}\u{301}]/u; β”‚ ^^^^^^^^^^^^^^^^^^ 10 β”‚ var r = /[❇�]/; 11 β”‚ var r = /[❇�]/u; ``` ``` invalid.js:10:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 8 β”‚ var r = /[\u0041\u0301]/u; 9 β”‚ var r = /[\u{41}\u{301}]/u; > 10 β”‚ var r = /[❇�]/; β”‚ ^^^^^ 11 β”‚ var r = /[❇�]/u; 12 β”‚ var r = /[\u2747\uFE0F]/; ``` ``` invalid.js:11:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 9 β”‚ var r = /[\u{41}\u{301}]/u; 10 β”‚ var r = /[❇�]/; > 11 β”‚ var r = /[❇�]/u; β”‚ ^^^^^^ 12 β”‚ var r = /[\u2747\uFE0F]/; 13 β”‚ var r = /[\u2747\uFE0F]/u; ``` ``` invalid.js:12:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 10 β”‚ var r = /[❇�]/; 11 β”‚ var r = /[❇�]/u; > 12 β”‚ var r = /[\u2747\uFE0F]/; β”‚ ^^^^^^^^^^^^^^^^ 13 β”‚ var r = /[\u2747\uFE0F]/u; 14 β”‚ var r = /[\u{2747}\u{FE0F}]/u; ``` ``` invalid.js:13:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 11 β”‚ var r = /[❇�]/u; 12 β”‚ var r = /[\u2747\uFE0F]/; > 13 β”‚ var r = /[\u2747\uFE0F]/u; β”‚ ^^^^^^^^^^^^^^^^^ 14 β”‚ var r = /[\u{2747}\u{FE0F}]/u; 15 β”‚ var r = /[πŸ‘ΆπŸ»]/; ``` ``` invalid.js:14:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 12 β”‚ var r = /[\u2747\uFE0F]/; 13 β”‚ var r = /[\u2747\uFE0F]/u; > 14 β”‚ var r = /[\u{2747}\u{FE0F}]/u; β”‚ ^^^^^^^^^^^^^^^^^^^^^ 15 β”‚ var r = /[πŸ‘ΆπŸ»]/; 16 β”‚ var r = /[πŸ‘ΆπŸ»]/u; ``` ``` invalid.js:15:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 13 β”‚ var r = /[\u2747\uFE0F]/u; 14 β”‚ var r = /[\u{2747}\u{FE0F}]/u; > 15 β”‚ var r = /[πŸ‘ΆπŸ»]/; β”‚ ^^^^^^^^ 16 β”‚ var r = /[πŸ‘ΆπŸ»]/u; 17 β”‚ var r = /[\uD83D\uDC76\uD83C\uDFFB]/u; i Safe fix: Add unicode u flag to regex 15 β”‚ varΒ·rΒ·=Β·/[πŸ‘ΆπŸ»]/u; β”‚ + ``` ``` invalid.js:16:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected modified Emoji in the character class. 14 β”‚ var r = /[\u{2747}\u{FE0F}]/u; 15 β”‚ var r = /[πŸ‘ΆπŸ»]/; > 16 β”‚ var r = /[πŸ‘ΆπŸ»]/u; β”‚ ^^^^^^^^^ 17 β”‚ var r = /[\uD83D\uDC76\uD83C\uDFFB]/u; 18 β”‚ var r = /[\u{1F476}\u{1F3FB}]/u; ``` ``` invalid.js:17:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected modified Emoji in the character class. 15 β”‚ var r = /[πŸ‘ΆπŸ»]/; 16 β”‚ var r = /[πŸ‘ΆπŸ»]/u; > 17 β”‚ var r = /[\uD83D\uDC76\uD83C\uDFFB]/u; β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18 β”‚ var r = /[\u{1F476}\u{1F3FB}]/u; 19 β”‚ var r = /[πŸ‡―πŸ‡΅]/; ``` ``` invalid.js:18:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected modified Emoji in the character class. 16 β”‚ var r = /[πŸ‘ΆπŸ»]/u; 17 β”‚ var r = /[\uD83D\uDC76\uD83C\uDFFB]/u; > 18 β”‚ var r = /[\u{1F476}\u{1F3FB}]/u; β”‚ ^^^^^^^^^^^^^^^^^^^^^^^ 19 β”‚ var r = /[πŸ‡―πŸ‡΅]/; 20 β”‚ var r = /[πŸ‡―πŸ‡΅]/i; ``` ``` invalid.js:19:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 17 β”‚ var r = /[\uD83D\uDC76\uD83C\uDFFB]/u; 18 β”‚ var r = /[\u{1F476}\u{1F3FB}]/u; > 19 β”‚ var r = /[πŸ‡―πŸ‡΅]/; β”‚ ^^^^^^ 20 β”‚ var r = /[πŸ‡―πŸ‡΅]/i; 21 β”‚ var r = /[πŸ‡―πŸ‡΅]/u; i Safe fix: Add unicode u flag to regex 19 β”‚ varΒ·rΒ·=Β·/[πŸ‡―πŸ‡΅]/u; β”‚ + ``` ``` invalid.js:20:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 18 β”‚ var r = /[\u{1F476}\u{1F3FB}]/u; 19 β”‚ var r = /[πŸ‡―πŸ‡΅]/; > 20 β”‚ var r = /[πŸ‡―πŸ‡΅]/i; β”‚ ^^^^^^^ 21 β”‚ var r = /[πŸ‡―πŸ‡΅]/u; 22 β”‚ var r = /[\uD83C\uDDEF\uD83C\uDDF5]/u; i Safe fix: Add unicode u flag to regex 18 18 β”‚ var r = /[\u{1F476}\u{1F3FB}]/u; 19 19 β”‚ var r = /[πŸ‡―πŸ‡΅]/; 20 β”‚ - varΒ·rΒ·=Β·/[πŸ‡―πŸ‡΅]/i; 20 β”‚ + varΒ·rΒ·=Β·/[πŸ‡―πŸ‡΅]/iu; 21 21 β”‚ var r = /[πŸ‡―πŸ‡΅]/u; 22 22 β”‚ var r = /[\uD83C\uDDEF\uD83C\uDDF5]/u; ``` ``` invalid.js:21:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Regional indicator symbol characters should not be used in the character class. 19 β”‚ var r = /[πŸ‡―πŸ‡΅]/; 20 β”‚ var r = /[πŸ‡―πŸ‡΅]/i; > 21 β”‚ var r = /[πŸ‡―πŸ‡΅]/u; β”‚ ^^^^^^^ 22 β”‚ var r = /[\uD83C\uDDEF\uD83C\uDDF5]/u; 23 β”‚ var r = /[\u{1F1EF}\u{1F1F5}]/u; ``` ``` invalid.js:22:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Regional indicator symbol characters should not be used in the character class. 20 β”‚ var r = /[πŸ‡―πŸ‡΅]/i; 21 β”‚ var r = /[πŸ‡―πŸ‡΅]/u; > 22 β”‚ var r = /[\uD83C\uDDEF\uD83C\uDDF5]/u; β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 23 β”‚ var r = /[\u{1F1EF}\u{1F1F5}]/u; 24 β”‚ var r = /[πŸ‘¨οΏ½πŸ‘©οΏ½πŸ‘¦]/; ``` ``` invalid.js:23:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Regional indicator symbol characters should not be used in the character class. 21 β”‚ var r = /[πŸ‡―πŸ‡΅]/u; 22 β”‚ var r = /[\uD83C\uDDEF\uD83C\uDDF5]/u; > 23 β”‚ var r = /[\u{1F1EF}\u{1F1F5}]/u; β”‚ ^^^^^^^^^^^^^^^^^^^^^^^ 24 β”‚ var r = /[πŸ‘¨οΏ½πŸ‘©οΏ½πŸ‘¦]/; 25 β”‚ var r = /[πŸ‘¨οΏ½πŸ‘©οΏ½πŸ‘¦]/u; ``` ``` invalid.js:24:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 22 β”‚ var r = /[\uD83C\uDDEF\uD83C\uDDF5]/u; 23 β”‚ var r = /[\u{1F1EF}\u{1F1F5}]/u; > 24 β”‚ var r = /[πŸ‘¨οΏ½πŸ‘©οΏ½πŸ‘¦]/; β”‚ ^^^^^^^^^^ 25 β”‚ var r = /[πŸ‘¨οΏ½πŸ‘©οΏ½πŸ‘¦]/u; 26 β”‚ var r = /[\uD83D\uDC68\u200D\uD83D\uDC69\u200D\uD83D\uDC66]/u; i Safe fix: Add unicode u flag to regex 24 β”‚ varΒ·rΒ·=Β·/[πŸ‘¨οΏ½πŸ‘©οΏ½πŸ‘¦]/u; β”‚ + ``` ``` invalid.js:25:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected joined character sequence in character class. 23 β”‚ var r = /[\u{1F1EF}\u{1F1F5}]/u; 24 β”‚ var r = /[πŸ‘¨οΏ½πŸ‘©οΏ½πŸ‘¦]/; > 25 β”‚ var r = /[πŸ‘¨οΏ½πŸ‘©οΏ½πŸ‘¦]/u; β”‚ ^^^^^^^^^^^ 26 β”‚ var r = /[\uD83D\uDC68\u200D\uD83D\uDC69\u200D\uD83D\uDC66]/u; 27 β”‚ var r = /[\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F466}]/u; ``` ``` invalid.js:26:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected joined character sequence in character class. 24 β”‚ var r = /[πŸ‘¨οΏ½πŸ‘©οΏ½πŸ‘¦]/; 25 β”‚ var r = /[πŸ‘¨οΏ½πŸ‘©οΏ½πŸ‘¦]/u; > 26 β”‚ var r = /[\uD83D\uDC68\u200D\uD83D\uDC69\u200D\uD83D\uDC66]/u; β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 27 β”‚ var r = /[\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F466}]/u; 28 β”‚ var r = new RegExp("[πŸ‘]", ""); ``` ``` invalid.js:27:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected joined character sequence in character class. 25 β”‚ var r = /[πŸ‘¨οΏ½πŸ‘©οΏ½πŸ‘¦]/u; 26 β”‚ var r = /[\uD83D\uDC68\u200D\uD83D\uDC69\u200D\uD83D\uDC66]/u; > 27 β”‚ var r = /[\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F466}]/u; β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 28 β”‚ var r = new RegExp("[πŸ‘]", ""); 29 β”‚ var r = new RegExp('[πŸ‘]', ``); ``` ``` invalid.js:28:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 26 β”‚ var r = /[\uD83D\uDC68\u200D\uD83D\uDC69\u200D\uD83D\uDC66]/u; 27 β”‚ var r = /[\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F466}]/u; > 28 β”‚ var r = new RegExp("[πŸ‘]", ""); β”‚ ^^^^^^^^^^^^^^^^^^^^^^ 29 β”‚ var r = new RegExp('[πŸ‘]', ``); 30 β”‚ var r = new RegExp("[πŸ‘]", flags); i Safe fix: Add unicode u flag to regex 28 β”‚ varΒ·rΒ·=Β·newΒ·RegExp("[πŸ‘]",Β·"u"); β”‚ + ``` ``` invalid.js:29:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 27 β”‚ var r = /[\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F466}]/u; 28 β”‚ var r = new RegExp("[πŸ‘]", ""); > 29 β”‚ var r = new RegExp('[πŸ‘]', ``); β”‚ ^^^^^^^^^^^^^^^^^^^^^^ 30 β”‚ var r = new RegExp("[πŸ‘]", flags); 31 β”‚ var r = new RegExp("[\uD83D\uDC4D]", ""); i Safe fix: Add unicode u flag to regex 29 β”‚ varΒ·rΒ·=Β·newΒ·RegExp('[πŸ‘]',Β·`u`); β”‚ + ``` ``` invalid.js:30:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 28 β”‚ var r = new RegExp("[πŸ‘]", ""); 29 β”‚ var r = new RegExp('[πŸ‘]', ``); > 30 β”‚ var r = new RegExp("[πŸ‘]", flags); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^ 31 β”‚ var r = new RegExp("[\uD83D\uDC4D]", ""); 32 β”‚ var r = new RegExp("/(?<=[πŸ‘])", ""); ``` ``` invalid.js:31:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 29 β”‚ var r = new RegExp('[πŸ‘]', ``); 30 β”‚ var r = new RegExp("[πŸ‘]", flags); > 31 β”‚ var r = new RegExp("[\uD83D\uDC4D]", ""); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 32 β”‚ var r = new RegExp("/(?<=[πŸ‘])", ""); 33 β”‚ var r = new RegExp("[AοΏ½]", ""); i Safe fix: Add unicode u flag to regex 31 β”‚ varΒ·rΒ·=Β·newΒ·RegExp("[\uD83D\uDC4D]",Β·"u"); β”‚ + ``` ``` invalid.js:32:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 30 β”‚ var r = new RegExp("[πŸ‘]", flags); 31 β”‚ var r = new RegExp("[\uD83D\uDC4D]", ""); > 32 β”‚ var r = new RegExp("/(?<=[πŸ‘])", ""); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 33 β”‚ var r = new RegExp("[AοΏ½]", ""); 34 β”‚ var r = new RegExp("[AοΏ½]", "u"); i Safe fix: Add unicode u flag to regex 32 β”‚ varΒ·rΒ·=Β·newΒ·RegExp("/(?<=[πŸ‘])",Β·"u"); β”‚ + ``` ``` invalid.js:33:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 31 β”‚ var r = new RegExp("[\uD83D\uDC4D]", ""); 32 β”‚ var r = new RegExp("/(?<=[πŸ‘])", ""); > 33 β”‚ var r = new RegExp("[AοΏ½]", ""); β”‚ ^^^^^^^^^^^^^^^^^^^^^ 34 β”‚ var r = new RegExp("[AοΏ½]", "u"); 35 β”‚ var r = new RegExp("[\u0041\u0301]", ""); ``` ``` invalid.js:34:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 32 β”‚ var r = new RegExp("/(?<=[πŸ‘])", ""); 33 β”‚ var r = new RegExp("[AοΏ½]", ""); > 34 β”‚ var r = new RegExp("[AοΏ½]", "u"); β”‚ ^^^^^^^^^^^^^^^^^^^^^^ 35 β”‚ var r = new RegExp("[\u0041\u0301]", ""); 36 β”‚ var r = new RegExp("[\u0041\u0301]", "u"); ``` ``` invalid.js:35:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 33 β”‚ var r = new RegExp("[AοΏ½]", ""); 34 β”‚ var r = new RegExp("[AοΏ½]", "u"); > 35 β”‚ var r = new RegExp("[\u0041\u0301]", ""); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 36 β”‚ var r = new RegExp("[\u0041\u0301]", "u"); 37 β”‚ var r = new RegExp("[\u{41}\u{301}]", "u"); ``` ``` invalid.js:36:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 34 β”‚ var r = new RegExp("[AοΏ½]", "u"); 35 β”‚ var r = new RegExp("[\u0041\u0301]", ""); > 36 β”‚ var r = new RegExp("[\u0041\u0301]", "u"); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 37 β”‚ var r = new RegExp("[\u{41}\u{301}]", "u"); 38 β”‚ var r = new RegExp("[❇�]", ""); ``` ``` invalid.js:37:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 35 β”‚ var r = new RegExp("[\u0041\u0301]", ""); 36 β”‚ var r = new RegExp("[\u0041\u0301]", "u"); > 37 β”‚ var r = new RegExp("[\u{41}\u{301}]", "u"); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 38 β”‚ var r = new RegExp("[❇�]", ""); 39 β”‚ var r = new RegExp("[❇�]", "u"); ``` ``` invalid.js:38:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 36 β”‚ var r = new RegExp("[\u0041\u0301]", "u"); 37 β”‚ var r = new RegExp("[\u{41}\u{301}]", "u"); > 38 β”‚ var r = new RegExp("[❇�]", ""); β”‚ ^^^^^^^^^^^^^^^^^^^^^ 39 β”‚ var r = new RegExp("[❇�]", "u"); 40 β”‚ var r = new RegExp("[\u2747\uFE0F]", ""); ``` ``` invalid.js:39:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 37 β”‚ var r = new RegExp("[\u{41}\u{301}]", "u"); 38 β”‚ var r = new RegExp("[❇�]", ""); > 39 β”‚ var r = new RegExp("[❇�]", "u"); β”‚ ^^^^^^^^^^^^^^^^^^^^^^ 40 β”‚ var r = new RegExp("[\u2747\uFE0F]", ""); 41 β”‚ var r = new RegExp("[\u2747\uFE0F]", "u"); ``` ``` invalid.js:40:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 38 β”‚ var r = new RegExp("[❇�]", ""); 39 β”‚ var r = new RegExp("[❇�]", "u"); > 40 β”‚ var r = new RegExp("[\u2747\uFE0F]", ""); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 41 β”‚ var r = new RegExp("[\u2747\uFE0F]", "u"); 42 β”‚ var r = new RegExp("[\u{2747}\u{FE0F}]", "u"); ``` ``` invalid.js:41:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 39 β”‚ var r = new RegExp("[❇�]", "u"); 40 β”‚ var r = new RegExp("[\u2747\uFE0F]", ""); > 41 β”‚ var r = new RegExp("[\u2747\uFE0F]", "u"); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 42 β”‚ var r = new RegExp("[\u{2747}\u{FE0F}]", "u"); 43 β”‚ var r = new RegExp("[πŸ‘ΆπŸ»]", ""); ``` ``` invalid.js:42:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 40 β”‚ var r = new RegExp("[\u2747\uFE0F]", ""); 41 β”‚ var r = new RegExp("[\u2747\uFE0F]", "u"); > 42 β”‚ var r = new RegExp("[\u{2747}\u{FE0F}]", "u"); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 43 β”‚ var r = new RegExp("[πŸ‘ΆπŸ»]", ""); 44 β”‚ var r = new RegExp("[πŸ‘ΆπŸ»]", "u"); ``` ``` invalid.js:43:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 41 β”‚ var r = new RegExp("[\u2747\uFE0F]", "u"); 42 β”‚ var r = new RegExp("[\u{2747}\u{FE0F}]", "u"); > 43 β”‚ var r = new RegExp("[πŸ‘ΆπŸ»]", ""); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^ 44 β”‚ var r = new RegExp("[πŸ‘ΆπŸ»]", "u"); 45 β”‚ var r = new RegExp("[\uD83D\uDC76\uD83C\uDFFB]", "u"); i Safe fix: Add unicode u flag to regex 43 β”‚ varΒ·rΒ·=Β·newΒ·RegExp("[πŸ‘ΆπŸ»]",Β·"u"); β”‚ + ``` ``` invalid.js:44:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected modified Emoji in the character class. 42 β”‚ var r = new RegExp("[\u{2747}\u{FE0F}]", "u"); 43 β”‚ var r = new RegExp("[πŸ‘ΆπŸ»]", ""); > 44 β”‚ var r = new RegExp("[πŸ‘ΆπŸ»]", "u"); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^ 45 β”‚ var r = new RegExp("[\uD83D\uDC76\uD83C\uDFFB]", "u"); 46 β”‚ var r = new RegExp("[\u{1F476}\u{1F3FB}]", "u"); ``` ``` invalid.js:45:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected modified Emoji in the character class. 43 β”‚ var r = new RegExp("[πŸ‘ΆπŸ»]", ""); 44 β”‚ var r = new RegExp("[πŸ‘ΆπŸ»]", "u"); > 45 β”‚ var r = new RegExp("[\uD83D\uDC76\uD83C\uDFFB]", "u"); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 46 β”‚ var r = new RegExp("[\u{1F476}\u{1F3FB}]", "u"); 47 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]", ""); ``` ``` invalid.js:46:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected modified Emoji in the character class. 44 β”‚ var r = new RegExp("[πŸ‘ΆπŸ»]", "u"); 45 β”‚ var r = new RegExp("[\uD83D\uDC76\uD83C\uDFFB]", "u"); > 46 β”‚ var r = new RegExp("[\u{1F476}\u{1F3FB}]", "u"); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 47 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]", ""); 48 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]", "i"); ``` ``` invalid.js:47:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 45 β”‚ var r = new RegExp("[\uD83D\uDC76\uD83C\uDFFB]", "u"); 46 β”‚ var r = new RegExp("[\u{1F476}\u{1F3FB}]", "u"); > 47 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]", ""); β”‚ ^^^^^^^^^^^^^^^^^^^^^^ 48 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]", "i"); 49 β”‚ var r = new RegExp('[πŸ‡―πŸ‡΅]', `i`); i Safe fix: Add unicode u flag to regex 47 β”‚ varΒ·rΒ·=Β·newΒ·RegExp("[πŸ‡―πŸ‡΅]",Β·"u"); β”‚ + ``` ``` invalid.js:48:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 46 β”‚ var r = new RegExp("[\u{1F476}\u{1F3FB}]", "u"); 47 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]", ""); > 48 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]", "i"); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^ 49 β”‚ var r = new RegExp('[πŸ‡―πŸ‡΅]', `i`); 50 β”‚ var r = new RegExp('[πŸ‡―πŸ‡΅]', `${foo}`); i Safe fix: Add unicode u flag to regex 46 46 β”‚ var r = new RegExp("[\u{1F476}\u{1F3FB}]", "u"); 47 47 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]", ""); 48 β”‚ - varΒ·rΒ·=Β·newΒ·RegExp("[πŸ‡―πŸ‡΅]",Β·"i"); 48 β”‚ + varΒ·rΒ·=Β·newΒ·RegExp("[πŸ‡―πŸ‡΅]",Β·"iu"); 49 49 β”‚ var r = new RegExp('[πŸ‡―πŸ‡΅]', `i`); 50 50 β”‚ var r = new RegExp('[πŸ‡―πŸ‡΅]', `${foo}`); ``` ``` invalid.js:49:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 47 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]", ""); 48 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]", "i"); > 49 β”‚ var r = new RegExp('[πŸ‡―πŸ‡΅]', `i`); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^ 50 β”‚ var r = new RegExp('[πŸ‡―πŸ‡΅]', `${foo}`); 51 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]"); i Safe fix: Add unicode u flag to regex 47 47 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]", ""); 48 48 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]", "i"); 49 β”‚ - varΒ·rΒ·=Β·newΒ·RegExp('[πŸ‡―πŸ‡΅]',Β·`i`); 49 β”‚ + varΒ·rΒ·=Β·newΒ·RegExp('[πŸ‡―πŸ‡΅]',Β·`iu`); 50 50 β”‚ var r = new RegExp('[πŸ‡―πŸ‡΅]', `${foo}`); 51 51 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]"); ``` ``` invalid.js:50:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 48 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]", "i"); 49 β”‚ var r = new RegExp('[πŸ‡―πŸ‡΅]', `i`); > 50 β”‚ var r = new RegExp('[πŸ‡―πŸ‡΅]', `${foo}`); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 51 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]"); 52 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]",); i Safe fix: Add unicode u flag to regex 50 β”‚ varΒ·rΒ·=Β·newΒ·RegExp('[πŸ‡―πŸ‡΅]',Β·`${foo}u`); β”‚ + ``` ``` invalid.js:51:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 49 β”‚ var r = new RegExp('[πŸ‡―πŸ‡΅]', `i`); 50 β”‚ var r = new RegExp('[πŸ‡―πŸ‡΅]', `${foo}`); > 51 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]"); β”‚ ^^^^^^^^^^^^^^^^^^ 52 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]",); 53 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]", "u"); i Safe fix: Add unicode u flag to regex 51 β”‚ varΒ·rΒ·=Β·newΒ·RegExp("[πŸ‡―πŸ‡΅]",Β·"u"); β”‚ +++++ ``` ``` invalid.js:52:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 50 β”‚ var r = new RegExp('[πŸ‡―πŸ‡΅]', `${foo}`); 51 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]"); > 52 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]",); β”‚ ^^^^^^^^^^^^^^^^^^^ 53 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]", "u"); 54 β”‚ var r = new RegExp("[\uD83C\uDDEF\uD83C\uDDF5]", "u"); i Safe fix: Add unicode u flag to regex 52 β”‚ varΒ·rΒ·=Β·newΒ·RegExp("[πŸ‡―πŸ‡΅]",Β·"u"); β”‚ ++++ ``` ``` invalid.js:53:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Regional indicator symbol characters should not be used in the character class. 51 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]"); 52 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]",); > 53 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]", "u"); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^ 54 β”‚ var r = new RegExp("[\uD83C\uDDEF\uD83C\uDDF5]", "u"); 55 β”‚ var r = new RegExp("[\u{1F1EF}\u{1F1F5}]", "u"); ``` ``` invalid.js:54:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Regional indicator symbol characters should not be used in the character class. 52 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]",); 53 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]", "u"); > 54 β”‚ var r = new RegExp("[\uD83C\uDDEF\uD83C\uDDF5]", "u"); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 55 β”‚ var r = new RegExp("[\u{1F1EF}\u{1F1F5}]", "u"); 56 β”‚ var r = new RegExp("[πŸ‘¨οΏ½πŸ‘©οΏ½πŸ‘¦]", ""); ``` ``` invalid.js:55:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Regional indicator symbol characters should not be used in the character class. 53 β”‚ var r = new RegExp("[πŸ‡―πŸ‡΅]", "u"); 54 β”‚ var r = new RegExp("[\uD83C\uDDEF\uD83C\uDDF5]", "u"); > 55 β”‚ var r = new RegExp("[\u{1F1EF}\u{1F1F5}]", "u"); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 56 β”‚ var r = new RegExp("[πŸ‘¨οΏ½πŸ‘©οΏ½πŸ‘¦]", ""); 57 β”‚ var r = new RegExp("[πŸ‘¨οΏ½πŸ‘©οΏ½πŸ‘¦]", "u"); ``` ``` invalid.js:56:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 54 β”‚ var r = new RegExp("[\uD83C\uDDEF\uD83C\uDDF5]", "u"); 55 β”‚ var r = new RegExp("[\u{1F1EF}\u{1F1F5}]", "u"); > 56 β”‚ var r = new RegExp("[πŸ‘¨οΏ½πŸ‘©οΏ½πŸ‘¦]", ""); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^ 57 β”‚ var r = new RegExp("[πŸ‘¨οΏ½πŸ‘©οΏ½πŸ‘¦]", "u"); 58 β”‚ var r = new RegExp("[\uD83D\uDC68\u200D\uD83D\uDC69\u200D\uD83D\uDC66]", "u"); i Safe fix: Add unicode u flag to regex 56 β”‚ varΒ·rΒ·=Β·newΒ·RegExp("[πŸ‘¨οΏ½πŸ‘©οΏ½πŸ‘¦]",Β·"u"); β”‚ + ``` ``` invalid.js:57:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected joined character sequence in character class. 55 β”‚ var r = new RegExp("[\u{1F1EF}\u{1F1F5}]", "u"); 56 β”‚ var r = new RegExp("[πŸ‘¨οΏ½πŸ‘©οΏ½πŸ‘¦]", ""); > 57 β”‚ var r = new RegExp("[πŸ‘¨οΏ½πŸ‘©οΏ½πŸ‘¦]", "u"); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 58 β”‚ var r = new RegExp("[\uD83D\uDC68\u200D\uD83D\uDC69\u200D\uD83D\uDC66]", "u"); 59 β”‚ var r = new RegExp("[\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F466}]", "u"); ``` ``` invalid.js:58:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected joined character sequence in character class. 56 β”‚ var r = new RegExp("[πŸ‘¨οΏ½πŸ‘©οΏ½πŸ‘¦]", ""); 57 β”‚ var r = new RegExp("[πŸ‘¨οΏ½πŸ‘©οΏ½πŸ‘¦]", "u"); > 58 β”‚ var r = new RegExp("[\uD83D\uDC68\u200D\uD83D\uDC69\u200D\uD83D\uDC66]", "u"); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 59 β”‚ var r = new RegExp("[\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F466}]", "u"); 60 β”‚ var r = new globalThis.RegExp("[❇�]", ""); ``` ``` invalid.js:59:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected joined character sequence in character class. 57 β”‚ var r = new RegExp("[πŸ‘¨οΏ½πŸ‘©οΏ½πŸ‘¦]", "u"); 58 β”‚ var r = new RegExp("[\uD83D\uDC68\u200D\uD83D\uDC69\u200D\uD83D\uDC66]", "u"); > 59 β”‚ var r = new RegExp("[\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F466}]", "u"); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 60 β”‚ var r = new globalThis.RegExp("[❇�]", ""); 61 β”‚ var r = new globalThis.RegExp("[πŸ‘ΆπŸ»]", "u"); ``` ``` invalid.js:60:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 58 β”‚ var r = new RegExp("[\uD83D\uDC68\u200D\uD83D\uDC69\u200D\uD83D\uDC66]", "u"); 59 β”‚ var r = new RegExp("[\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F466}]", "u"); > 60 β”‚ var r = new globalThis.RegExp("[❇�]", ""); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 61 β”‚ var r = new globalThis.RegExp("[πŸ‘ΆπŸ»]", "u"); 62 β”‚ var r = new globalThis.RegExp("[πŸ‡―πŸ‡΅]", ""); ``` ``` invalid.js:61:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected modified Emoji in the character class. 59 β”‚ var r = new RegExp("[\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F466}]", "u"); 60 β”‚ var r = new globalThis.RegExp("[❇�]", ""); > 61 β”‚ var r = new globalThis.RegExp("[πŸ‘ΆπŸ»]", "u"); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 62 β”‚ var r = new globalThis.RegExp("[πŸ‡―πŸ‡΅]", ""); 63 β”‚ var r = new globalThis.RegExp("[\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F466}]", "u"); ``` ``` invalid.js:62:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 60 β”‚ var r = new globalThis.RegExp("[❇�]", ""); 61 β”‚ var r = new globalThis.RegExp("[πŸ‘ΆπŸ»]", "u"); > 62 β”‚ var r = new globalThis.RegExp("[πŸ‡―πŸ‡΅]", ""); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 63 β”‚ var r = new globalThis.RegExp("[\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F466}]", "u"); 64 β”‚ var r = new window.RegExp("[❇�]", ""); i Safe fix: Add unicode u flag to regex 62 β”‚ varΒ·rΒ·=Β·newΒ·globalThis.RegExp("[πŸ‡―πŸ‡΅]",Β·"u"); β”‚ + ``` ``` invalid.js:63:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected joined character sequence in character class. 61 β”‚ var r = new globalThis.RegExp("[πŸ‘ΆπŸ»]", "u"); 62 β”‚ var r = new globalThis.RegExp("[πŸ‡―πŸ‡΅]", ""); > 63 β”‚ var r = new globalThis.RegExp("[\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F466}]", "u"); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 64 β”‚ var r = new window.RegExp("[❇�]", ""); 65 β”‚ var r = new window.RegExp("[πŸ‘]", ""); ``` ``` invalid.js:64:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 62 β”‚ var r = new globalThis.RegExp("[πŸ‡―πŸ‡΅]", ""); 63 β”‚ var r = new globalThis.RegExp("[\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F466}]", "u"); > 64 β”‚ var r = new window.RegExp("[❇�]", ""); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 65 β”‚ var r = new window.RegExp("[πŸ‘]", ""); 66 β”‚ var r = new global.RegExp("[❇�]", ""); ``` ``` invalid.js:65:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 63 β”‚ var r = new globalThis.RegExp("[\u{1F468}\u{200D}\u{1F469}\u{200D}\u{1F466}]", "u"); 64 β”‚ var r = new window.RegExp("[❇�]", ""); > 65 β”‚ var r = new window.RegExp("[πŸ‘]", ""); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 66 β”‚ var r = new global.RegExp("[❇�]", ""); 67 β”‚ var r = new global.RegExp("[πŸ‘]", ""); i Safe fix: Add unicode u flag to regex 65 β”‚ varΒ·rΒ·=Β·newΒ·window.RegExp("[πŸ‘]",Β·"u"); β”‚ + ``` ``` invalid.js:66:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 64 β”‚ var r = new window.RegExp("[❇�]", ""); 65 β”‚ var r = new window.RegExp("[πŸ‘]", ""); > 66 β”‚ var r = new global.RegExp("[❇�]", ""); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 67 β”‚ var r = new global.RegExp("[πŸ‘]", ""); 68 β”‚ var r = new globalThis.globalThis.globalThis.RegExp("[❇�]", ""); ``` ``` invalid.js:67:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 65 β”‚ var r = new window.RegExp("[πŸ‘]", ""); 66 β”‚ var r = new global.RegExp("[❇�]", ""); > 67 β”‚ var r = new global.RegExp("[πŸ‘]", ""); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 68 β”‚ var r = new globalThis.globalThis.globalThis.RegExp("[❇�]", ""); 69 β”‚ var r = new globalThis.globalThis.globalThis.RegExp("[πŸ‘]", ""); i Safe fix: Add unicode u flag to regex 67 β”‚ varΒ·rΒ·=Β·newΒ·global.RegExp("[πŸ‘]",Β·"u"); β”‚ + ``` ``` invalid.js:68:9 lint/suspicious/noMisleadingCharacterClass ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected combined character in the character class. 66 β”‚ var r = new global.RegExp("[❇�]", ""); 67 β”‚ var r = new global.RegExp("[πŸ‘]", ""); > 68 β”‚ var r = new globalThis.globalThis.globalThis.RegExp("[❇�]", ""); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 69 β”‚ var r = new globalThis.globalThis.globalThis.RegExp("[πŸ‘]", ""); 70 β”‚ var r = RegExp("[πŸ‘]", ""); ``` ``` invalid.js:69:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 67 β”‚ var r = new global.RegExp("[πŸ‘]", ""); 68 β”‚ var r = new globalThis.globalThis.globalThis.RegExp("[❇�]", ""); > 69 β”‚ var r = new globalThis.globalThis.globalThis.RegExp("[πŸ‘]", ""); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 70 β”‚ var r = RegExp("[πŸ‘]", ""); 71 β”‚ var r = window.RegExp("[πŸ‘]", ""); i Safe fix: Add unicode u flag to regex 69 β”‚ varΒ·rΒ·=Β·newΒ·globalThis.globalThis.globalThis.RegExp("[πŸ‘]",Β·"u"); β”‚ + ``` ``` invalid.js:70:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 68 β”‚ var r = new globalThis.globalThis.globalThis.RegExp("[❇�]", ""); 69 β”‚ var r = new globalThis.globalThis.globalThis.RegExp("[πŸ‘]", ""); > 70 β”‚ var r = RegExp("[πŸ‘]", ""); β”‚ ^^^^^^^^^^^^^^^^^^ 71 β”‚ var r = window.RegExp("[πŸ‘]", ""); 72 β”‚ var r = global.RegExp("[πŸ‘]", ""); i Safe fix: Add unicode u flag to regex 70 β”‚ varΒ·rΒ·=Β·RegExp("[πŸ‘]",Β·"u"); β”‚ + ``` ``` invalid.js:71:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 69 β”‚ var r = new globalThis.globalThis.globalThis.RegExp("[πŸ‘]", ""); 70 β”‚ var r = RegExp("[πŸ‘]", ""); > 71 β”‚ var r = window.RegExp("[πŸ‘]", ""); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^ 72 β”‚ var r = global.RegExp("[πŸ‘]", ""); 73 β”‚ var r = globalThis.RegExp("[πŸ‘]", ""); i Safe fix: Add unicode u flag to regex 71 β”‚ varΒ·rΒ·=Β·window.RegExp("[πŸ‘]",Β·"u"); β”‚ + ``` ``` invalid.js:72:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 70 β”‚ var r = RegExp("[πŸ‘]", ""); 71 β”‚ var r = window.RegExp("[πŸ‘]", ""); > 72 β”‚ var r = global.RegExp("[πŸ‘]", ""); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^ 73 β”‚ var r = globalThis.RegExp("[πŸ‘]", ""); 74 β”‚ i Safe fix: Add unicode u flag to regex 72 β”‚ varΒ·rΒ·=Β·global.RegExp("[πŸ‘]",Β·"u"); β”‚ + ``` ``` invalid.js:73:9 lint/suspicious/noMisleadingCharacterClass FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Unexpected surrogate pair in character class. Use the 'u' flag. 71 β”‚ var r = window.RegExp("[πŸ‘]", ""); 72 β”‚ var r = global.RegExp("[πŸ‘]", ""); > 73 β”‚ var r = globalThis.RegExp("[πŸ‘]", ""); β”‚ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 74 β”‚ i Safe fix: Add unicode u flag to regex 73 β”‚ varΒ·rΒ·=Β·globalThis.RegExp("[πŸ‘]",Β·"u"); β”‚ + ```