@@ -546,7 +546,7 @@ function parseArgumentsList<T>(text: string, start: number, argument: (value: st
546546 }
547547 end = arg . end ;
548548 value . push ( arg ) ;
549-
549+
550550 closingBracketOrCommaRegEx . lastIndex = end ;
551551 const closingBracketOrComma = closingBracketOrCommaRegEx . exec ( text ) ;
552552 if ( closingBracketOrComma ) {
@@ -734,7 +734,7 @@ export function parseUniversalSelector(text: string, start: number = 0): Parsed<
734734 return { start, end, value : { type : "*" } } ;
735735}
736736
737- const simpleIdentifierSelectorRegEx = / ( # | \. | : | \b ) ( [ _ - \w ] [ _ - \w \d ] * ) / gy;
737+ const simpleIdentifierSelectorRegEx = / ( # | \. | : | \b ) ( [ _ - \w ] [ _ - \w \d \\ / ] * ) / gy;
738738export function parseSimpleIdentifierSelector ( text : string , start : number = 0 ) : Parsed < TypeSelector | ClassSelector | IdSelector | PseudoClassSelector > {
739739 simpleIdentifierSelectorRegEx . lastIndex = start ;
740740 const result = simpleIdentifierSelectorRegEx . exec ( text ) ;
@@ -743,7 +743,7 @@ export function parseSimpleIdentifierSelector(text: string, start: number = 0):
743743 }
744744 const end = simpleIdentifierSelectorRegEx . lastIndex ;
745745 const type = < "#" | "." | ":" | "" > result [ 1 ] ;
746- const identifier : string = result [ 2 ] ;
746+ const identifier : string = result [ 2 ] . replace ( / \\ / g , "" ) ;
747747 const value = < TypeSelector | ClassSelector | IdSelector | PseudoClassSelector > { type, identifier } ;
748748
749749 return { start, end, value } ;
@@ -1617,4 +1617,4 @@ export class CSSNativeScript {
16171617
16181618 return selectors ;
16191619 }
1620- }
1620+ }
0 commit comments