@ -105,7 +105,7 @@ function quote(s) {
. replace ( /\n/g , '\\n' ) // line feed
. replace ( /\n/g , '\\n' ) // line feed
. replace ( /[\x80-\uFFFF]/g , escape ) // non-ASCII characters
. replace ( /[\x80-\uFFFF]/g , escape ) // non-ASCII characters
+ '"' ;
+ '"' ;
} ;
}
/ *
/ *
* Escapes characters inside the string so that it can be used as a list of
* Escapes characters inside the string so that it can be used as a list of
@ -125,7 +125,7 @@ function quoteForRegexpClass(s) {
. replace ( /-/g , '\\-' ) // dash
. replace ( /-/g , '\\-' ) // dash
. replace ( /\r/g , '\\r' ) // carriage return
. replace ( /\r/g , '\\r' ) // carriage return
. replace ( /\n/g , '\\n' ) // line feed
. replace ( /\n/g , '\\n' ) // line feed
. replace ( /[\x80-\uFFFF]/g , escape ) // non-ASCII characters
. replace ( /[\x80-\uFFFF]/g , escape ) ; // non-ASCII characters
}
}
/ *
/ *
@ -137,5 +137,5 @@ function quoteForRegexpClass(s) {
function buildNodeVisitor ( functions ) {
function buildNodeVisitor ( functions ) {
return function ( node ) {
return function ( node ) {
return functions [ node . type ] . apply ( null , arguments ) ;
return functions [ node . type ] . apply ( null , arguments ) ;
}
} ;
}
}