File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import type {
3
3
Backreference ,
4
4
CapturingGroup ,
5
5
CharacterClass ,
6
- CharacterClassElement ,
7
6
CharacterClassRange ,
8
7
Flags ,
9
8
Group ,
@@ -393,7 +392,7 @@ class RegExpParserState {
393
392
throw new Error ( "UnknownError" )
394
393
}
395
394
396
- ; ( parent . elements as CharacterClassElement [ ] ) . push ( {
395
+ parent . elements . push ( {
397
396
type : "CharacterSet" ,
398
397
parent,
399
398
start,
Original file line number Diff line number Diff line change @@ -642,7 +642,7 @@ export class RegExpValidator {
642
642
* @param options The options of validator.
643
643
*/
644
644
public constructor ( options ?: RegExpValidator . Options ) {
645
- this . _options = options ?? ( { } as RegExpValidator . Options )
645
+ this . _options = options ?? { }
646
646
}
647
647
648
648
/**
You can’t perform that action at this time.
0 commit comments