| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c2fab3c commit 60461d2
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -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 = /\brequire\s*\(['"](([\w\.\/-]+\/)?([\w\.\/-]*))/; | ||
| 786 | + const requireRE = /\brequire\s*\(['"](([\w./-]+\/)?([\w./-]*))/; | ||
| 787 | 787 | const simpleExpressionRE = | |
| 788 | 788 | /(([a-zA-Z_$](?:\w|\$)*)\.)*([a-zA-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); | |
@@ -1341,8 +1341,8 @@ function regexpEscape(s) { | |||
| 1341 | 1341 | // TODO(princejwesley): Remove it prior to v8.0.0 release | |
| 1342 | 1342 | // Reference: https://github.com/nodejs/node/pull/7829 | |
| 1343 | 1343 | REPLServer.prototype.convertToContext = util.deprecate(function(cmd) { | |
| 1344 | - const scopeVar = /^\s*var\s*([_\w\$]+)(.*)$/m; | ||
| 1345 | - const scopeFunc = /^\s*function\s*([_\w\$]+)/; | ||
| 1344 | + const scopeVar = /^\s*var\s*([\w$]+)(.*)$/m; | ||
| 1345 | + const scopeFunc = /^\s*function\s*([\w$]+)/; | ||
| 1346 | 1346 | var matches; | |
| 1347 | 1347 | ||
| 1348 | 1348 | // Replaces: var foo = "bar"; with: self.context.foo = bar; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments