@@ -40,12 +40,12 @@ const parentModule = module;
40
40
const replMap = new WeakMap ( ) ;
41
41
42
42
const GLOBAL_OBJECT_PROPERTIES = [ 'NaN' , 'Infinity' , 'undefined' ,
43
- 'eval' , 'parseInt' , 'parseFloat' , 'isNaN' , 'isFinite' , 'decodeURI' ,
44
- 'decodeURIComponent' , 'encodeURI' , 'encodeURIComponent' ,
45
- 'Object' , 'Function' , 'Array' , 'String' , 'Boolean' , 'Number' ,
46
- 'Date' , 'RegExp' , 'Error' , 'EvalError' , 'RangeError' ,
47
- 'ReferenceError' , 'SyntaxError' , 'TypeError' , 'URIError' ,
48
- 'Math' , 'JSON' ] ;
43
+ 'eval' , 'parseInt' , 'parseFloat' , 'isNaN' , 'isFinite' , 'decodeURI' ,
44
+ 'decodeURIComponent' , 'encodeURI' , 'encodeURIComponent' ,
45
+ 'Object' , 'Function' , 'Array' , 'String' , 'Boolean' , 'Number' ,
46
+ 'Date' , 'RegExp' , 'Error' , 'EvalError' , 'RangeError' ,
47
+ 'ReferenceError' , 'SyntaxError' , 'TypeError' , 'URIError' ,
48
+ 'Math' , 'JSON' ] ;
49
49
const GLOBAL_OBJECT_PROPERTY_MAP = { } ;
50
50
GLOBAL_OBJECT_PROPERTIES . forEach ( ( p ) => GLOBAL_OBJECT_PROPERTY_MAP [ p ] = p ) ;
51
51
@@ -783,7 +783,7 @@ ArrayStream.prototype.writable = true;
783
783
ArrayStream . prototype . resume = function ( ) { } ;
784
784
ArrayStream . prototype . write = function ( ) { } ;
785
785
786
- const requireRE = / \b r e q u i r e \s * \( [ ' " ] ( ( [ \w \. \ /- ] + \/ ) ? ( [ \w \. \ /- ] * ) ) / ;
786
+ const requireRE = / \b r e q u i r e \s * \( [ ' " ] ( ( [ \w . / - ] + \/ ) ? ( [ \w . / - ] * ) ) / ;
787
787
const simpleExpressionRE =
788
788
/ ( ( [ a - z A - Z _ $ ] (?: \w | \$ ) * ) \. ) * ( [ a - z A - Z _ $ ] (?: \w | \$ ) * ) \. ? $ / ;
789
789
@@ -1036,7 +1036,7 @@ function complete(line, callback) {
1036
1036
var newCompletionGroups = [ ] ;
1037
1037
for ( i = 0 ; i < completionGroups . length ; i ++ ) {
1038
1038
group = completionGroups [ i ] . filter ( function ( elem ) {
1039
- return elem . indexOf ( filter ) == 0 ;
1039
+ return elem . indexOf ( filter ) === 0 ;
1040
1040
} ) ;
1041
1041
if ( group . length ) {
1042
1042
newCompletionGroups . push ( group ) ;
@@ -1339,8 +1339,8 @@ function regexpEscape(s) {
1339
1339
* @return {String } The converted command.
1340
1340
*/
1341
1341
REPLServer . prototype . convertToContext = function ( cmd ) {
1342
- const scopeVar = / ^ \s * v a r \s * ( [ _ \w \ $] + ) ( .* ) $ / m;
1343
- const scopeFunc = / ^ \s * f u n c t i o n \s * ( [ _ \w \ $] + ) / ;
1342
+ const scopeVar = / ^ \s * v a r \s * ( [ \w $ ] + ) ( .* ) $ / m;
1343
+ const scopeFunc = / ^ \s * f u n c t i o n \s * ( [ \w $ ] + ) / ;
1344
1344
var matches ;
1345
1345
1346
1346
// Replaces: var foo = "bar"; with: self.context.foo = bar;
0 commit comments