We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
...
1 parent f37e3b1 commit d5b6ec8Copy full SHA for d5b6ec8
lib/repl.js
@@ -419,7 +419,7 @@ function REPLServer(prompt,
419
// Check to see if a REPL keyword was used. If it returns true,
420
// display next prompt and return.
421
if (trimmedCmd) {
422
- if (trimmedCmd.charAt(0) === '.' && isNaN(parseFloat(trimmedCmd))) {
+ if (trimmedCmd.charAt(0) === '.' && trimmedCmd.charAt(1) != '.' && isNaN(parseFloat(trimmedCmd))) {
423
const matches = trimmedCmd.match(/^\.([^\s]+)\s*(.*)$/);
424
const keyword = matches && matches[1];
425
const rest = matches && matches[2];
0 commit comments