File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -510,17 +510,18 @@ TokenStream.prototype = mix(new TokenStreamBase(), {
510
510
identOrFunctionToken : function ( first , startLine , startCol ) {
511
511
var reader = this . _reader ,
512
512
ident = this . readName ( first ) ,
513
- tt = Tokens . IDENT ;
513
+ tt = Tokens . IDENT ,
514
+ uriFns = [ "url(" , "url-prefix(" , "domain(" ] ;
514
515
515
516
//if there's a left paren immediately after, it's a URI or function
516
517
if ( reader . peek ( ) == "(" ) {
517
518
ident += reader . read ( ) ;
518
- if ( ident . toLowerCase ( ) == "url(" ) {
519
+ if ( uriFns . indexOf ( ident . toLowerCase ( ) ) > - 1 ) {
519
520
tt = Tokens . URI ;
520
521
ident = this . readURI ( ident ) ;
521
522
522
523
//didn't find a valid URL or there's no closing paren
523
- if ( ident . toLowerCase ( ) == "url(" ) {
524
+ if ( uriFns . indexOf ( ident . toLowerCase ( ) ) > - 1 ) {
524
525
tt = Tokens . FUNCTION ;
525
526
}
526
527
} else {
You can’t perform that action at this time.
0 commit comments