@@ -546,7 +546,7 @@ function parseArgumentsList<T>(text: string, start: number, argument: (value: st
546
546
}
547
547
end = arg . end ;
548
548
value . push ( arg ) ;
549
-
549
+
550
550
closingBracketOrCommaRegEx . lastIndex = end ;
551
551
const closingBracketOrComma = closingBracketOrCommaRegEx . exec ( text ) ;
552
552
if ( closingBracketOrComma ) {
@@ -734,7 +734,7 @@ export function parseUniversalSelector(text: string, start: number = 0): Parsed<
734
734
return { start, end, value : { type : "*" } } ;
735
735
}
736
736
737
- const simpleIdentifierSelectorRegEx = / ( # | \. | : | \b ) ( [ _ - \w ] [ _ - \w \d ] * ) / gy;
737
+ const simpleIdentifierSelectorRegEx = / ( # | \. | : | \b ) ( [ _ - \w ] [ _ - \w \d \\ / ] * ) / gy;
738
738
export function parseSimpleIdentifierSelector ( text : string , start : number = 0 ) : Parsed < TypeSelector | ClassSelector | IdSelector | PseudoClassSelector > {
739
739
simpleIdentifierSelectorRegEx . lastIndex = start ;
740
740
const result = simpleIdentifierSelectorRegEx . exec ( text ) ;
@@ -743,7 +743,7 @@ export function parseSimpleIdentifierSelector(text: string, start: number = 0):
743
743
}
744
744
const end = simpleIdentifierSelectorRegEx . lastIndex ;
745
745
const type = < "#" | "." | ":" | "" > result [ 1 ] ;
746
- const identifier : string = result [ 2 ] ;
746
+ const identifier : string = result [ 2 ] . replace ( / \\ / g , "" ) ;
747
747
const value = < TypeSelector | ClassSelector | IdSelector | PseudoClassSelector > { type, identifier } ;
748
748
749
749
return { start, end, value } ;
@@ -1617,4 +1617,4 @@ export class CSSNativeScript {
1617
1617
1618
1618
return selectors ;
1619
1619
}
1620
- }
1620
+ }
0 commit comments