Skip to content

Commit 81e3141

Browse files
fix(linter): update no_misleading_character_class snapshot
1 parent a336002 commit 81e3141

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

crates/oxc_linter/src/snapshots/eslint_no_misleading_character_class.snap

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -91,70 +91,70 @@ source: crates/oxc_linter/src/tester.rs
9191
1 │ var r = /[Á]/
9292
· ─
9393
╰────
94-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
94+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
9595

9696
eslint(no-misleading-character-class): Unexpected combining class in character class.
9797
╭─[no_misleading_character_class.tsx:1:11]
9898
1 │ var r = /[Á]/u
9999
· ─
100100
╰────
101-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
101+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
102102

103103
eslint(no-misleading-character-class): Unexpected combining class in character class.
104104
╭─[no_misleading_character_class.tsx:1:11]
105105
1 │ var r = /[\u0041\u0301]/
106106
· ────────────
107107
╰────
108-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
108+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
109109

110110
eslint(no-misleading-character-class): Unexpected combining class in character class.
111111
╭─[no_misleading_character_class.tsx:1:11]
112112
1 │ var r = /[\u0041\u0301]/u
113113
· ────────────
114114
╰────
115-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
115+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
116116

117117
eslint(no-misleading-character-class): Unexpected combining class in character class.
118118
╭─[no_misleading_character_class.tsx:1:11]
119119
1 │ var r = /[\u{41}\u{301}]/u
120120
· ─────────────
121121
╰────
122-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
122+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
123123

124124
eslint(no-misleading-character-class): Unexpected combining class in character class.
125125
╭─[no_misleading_character_class.tsx:1:11]
126126
1 │ var r = /[❇️]/
127127
· ──
128128
╰────
129-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
129+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
130130

131131
eslint(no-misleading-character-class): Unexpected combining class in character class.
132132
╭─[no_misleading_character_class.tsx:1:11]
133133
1 │ var r = /[❇️]/u
134134
· ──
135135
╰────
136-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
136+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
137137

138138
eslint(no-misleading-character-class): Unexpected combining class in character class.
139139
╭─[no_misleading_character_class.tsx:1:11]
140140
1 │ var r = /[\u2747\uFE0F]/
141141
· ────────────
142142
╰────
143-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
143+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
144144

145145
eslint(no-misleading-character-class): Unexpected combining class in character class.
146146
╭─[no_misleading_character_class.tsx:1:11]
147147
1 │ var r = /[\u2747\uFE0F]/u
148148
· ────────────
149149
╰────
150-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
150+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
151151

152152
eslint(no-misleading-character-class): Unexpected combining class in character class.
153153
╭─[no_misleading_character_class.tsx:1:11]
154154
1 │ var r = /[\u{2747}\u{FE0F}]/u
155155
· ────────────────
156156
╰────
157-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
157+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
158158

159159
eslint(no-misleading-character-class): Unexpected surrogate pair in character class.
160160
╭─[no_misleading_character_class.tsx:1:11]
@@ -471,15 +471,15 @@ source: crates/oxc_linter/src/tester.rs
471471
2 │ [❇️]`)
472472
· ─
473473
╰────
474-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
474+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
475475

476476
eslint(no-misleading-character-class): Unexpected combining class in character class.
477477
╭─[no_misleading_character_class.tsx:2:5]
478478
1 │ var r = new RegExp(`
479479
2 │ [❇️]`)
480480
· ─
481481
╰────
482-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
482+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
483483

484484
eslint(no-misleading-character-class): Unexpected surrogate pair in character class.
485485
╭─[no_misleading_character_class.tsx:1:40]
@@ -577,98 +577,98 @@ source: crates/oxc_linter/src/tester.rs
577577
1 │ var r = new RegExp("[Á]", "")
578578
· ─
579579
╰────
580-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
580+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
581581

582582
eslint(no-misleading-character-class): Unexpected combining class in character class.
583583
╭─[no_misleading_character_class.tsx:1:22]
584584
1 │ var r = new RegExp("[Á]", "u")
585585
· ─
586586
╰────
587-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
587+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
588588

589589
eslint(no-misleading-character-class): Unexpected combining class in character class.
590590
╭─[no_misleading_character_class.tsx:1:22]
591591
1 │ var r = new RegExp("[\\u0041\\u0301]", "")
592592
· ──────────────
593593
╰────
594-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
594+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
595595

596596
eslint(no-misleading-character-class): Unexpected combining class in character class.
597597
╭─[no_misleading_character_class.tsx:1:22]
598598
1 │ var r = new RegExp("[\\u0041\\u0301]", "u")
599599
· ──────────────
600600
╰────
601-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
601+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
602602

603603
eslint(no-misleading-character-class): Unexpected combining class in character class.
604604
╭─[no_misleading_character_class.tsx:1:22]
605605
1 │ var r = new RegExp("[\\u{41}\\u{301}]", "u")
606606
· ───────────────
607607
╰────
608-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
608+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
609609

610610
eslint(no-misleading-character-class): Unexpected combining class in character class.
611611
╭─[no_misleading_character_class.tsx:1:22]
612612
1 │ var r = new RegExp("[❇️]", "")
613613
· ──
614614
╰────
615-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
615+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
616616

617617
eslint(no-misleading-character-class): Unexpected combining class in character class.
618618
╭─[no_misleading_character_class.tsx:1:22]
619619
1 │ var r = new RegExp("[❇️]", "u")
620620
· ──
621621
╰────
622-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
622+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
623623

624624
eslint(no-misleading-character-class): Unexpected combining class in character class.
625625
╭─[no_misleading_character_class.tsx:1:14]
626626
1 │ new RegExp("[ \\ufe0f]", "")
627627
· ────────
628628
╰────
629-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
629+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
630630

631631
eslint(no-misleading-character-class): Unexpected combining class in character class.
632632
╭─[no_misleading_character_class.tsx:1:14]
633633
1 │ new RegExp("[ \\ufe0f]", "u")
634634
· ────────
635635
╰────
636-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
636+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
637637

638638
eslint(no-misleading-character-class): Unexpected combining class in character class.
639639
╭─[no_misleading_character_class.tsx:1:14]
640640
1 │ new RegExp("[ \\ufe0f][ \\ufe0f]")
641641
· ────────
642642
╰────
643-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
643+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
644644

645645
eslint(no-misleading-character-class): Unexpected combining class in character class.
646646
╭─[no_misleading_character_class.tsx:1:24]
647647
1 │ new RegExp("[ \\ufe0f][ \\ufe0f]")
648648
· ────────
649649
╰────
650-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
650+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
651651

652652
eslint(no-misleading-character-class): Unexpected combining class in character class.
653653
╭─[no_misleading_character_class.tsx:1:22]
654654
1 │ var r = new RegExp("[\\u2747\\uFE0F]", "")
655655
· ──────────────
656656
╰────
657-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
657+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
658658

659659
eslint(no-misleading-character-class): Unexpected combining class in character class.
660660
╭─[no_misleading_character_class.tsx:1:22]
661661
1 │ var r = new RegExp("[\\u2747\\uFE0F]", "u")
662662
· ──────────────
663663
╰────
664-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
664+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
665665

666666
eslint(no-misleading-character-class): Unexpected combining class in character class.
667667
╭─[no_misleading_character_class.tsx:1:22]
668668
1 │ var r = new RegExp("[\\u{2747}\\u{FE0F}]", "u")
669669
· ──────────────────
670670
╰────
671-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
671+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
672672

673673
eslint(no-misleading-character-class): Unexpected surrogate pair in character class.
674674
╭─[no_misleading_character_class.tsx:1:22]
@@ -1004,7 +1004,7 @@ source: crates/oxc_linter/src/tester.rs
10041004
1 │ var r = new globalThis.RegExp("[❇️]", "")
10051005
· ──
10061006
╰────
1007-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
1007+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
10081008

10091009
eslint(no-misleading-character-class): Unexpected emoji modifier in character class.
10101010
╭─[no_misleading_character_class.tsx:1:33]
@@ -1095,28 +1095,28 @@ source: crates/oxc_linter/src/tester.rs
10951095
1 │ new RegExp("\x5B \\ufe0f\u005D")
10961096
· ────────
10971097
╰────
1098-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
1098+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
10991099

11001100
eslint(no-misleading-character-class): Unexpected combining class in character class.
11011101
╭─[no_misleading_character_class.tsx:1:14]
11021102
1 │ new RegExp("[ \u{5c}ufe0f]")
11031103
· ────────────
11041104
╰────
1105-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
1105+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
11061106

11071107
eslint(no-misleading-character-class): Unexpected combining class in character class.
11081108
╭─[no_misleading_character_class.tsx:1:14]
11091109
1 │ new RegExp("[ \\ufe\60f]")
11101110
· ──────────
11111111
╰────
1112-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
1112+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
11131113

11141114
eslint(no-misleading-character-class): Unexpected combining class in character class.
11151115
╭─[no_misleading_character_class.tsx:1:14]
11161116
1 │ new RegExp("[ \\uf\e0f]")
11171117
· ─────────
11181118
╰────
1119-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
1119+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
11201120

11211121
eslint(no-misleading-character-class): Unexpected joined character sequence in character class.
11221122
╭─[no_misleading_character_class.tsx:1:14]
@@ -1144,21 +1144,21 @@ source: crates/oxc_linter/src/tester.rs
11441144
1 │ /[Á]/
11451145
· ─
11461146
╰────
1147-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
1147+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
11481148

11491149
eslint(no-misleading-character-class): Unexpected combining class in character class.
11501150
╭─[no_misleading_character_class.tsx:1:3]
11511151
1 │ /[\\̶]/
11521152
· ──
11531153
╰────
1154-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
1154+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
11551155

11561156
eslint(no-misleading-character-class): Unexpected combining class in character class.
11571157
╭─[no_misleading_character_class.tsx:1:3]
11581158
1 │ /[\n̅]/
11591159
· ──
11601160
╰────
1161-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
1161+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
11621162

11631163
eslint(no-misleading-character-class): Unexpected surrogate pair in character class.
11641164
╭─[no_misleading_character_class.tsx:1:3]
@@ -1172,7 +1172,7 @@ source: crates/oxc_linter/src/tester.rs
11721172
1 │ RegExp('[\è]')
11731173
· ──
11741174
╰────
1175-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
1175+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
11761176

11771177
eslint(no-misleading-character-class): Unexpected surrogate pair in character class.
11781178
╭─[no_misleading_character_class.tsx:1:10]
@@ -1193,7 +1193,7 @@ source: crates/oxc_linter/src/tester.rs
11931193
1 │ RegExp('[\❇️]')
11941194
· ───
11951195
╰────
1196-
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes (e.g., \u{1F1E6}\u{0301} for '') instead of combining sequences.
1196+
help: Replace the character with its normalized form (NFC) or use Unicode code point escapes instead of combining sequences.
11971197

11981198
eslint(no-misleading-character-class): Unexpected surrogate pair in character class.
11991199
╭─[no_misleading_character_class.tsx:1:10]

0 commit comments

Comments
 (0)