repl: avoid parsing division operator as regex · nodejs/node@fac6111 · GitHub
Skip to content

Commit fac6111

Browse files
not-an-aardvarkMylesBorins
authored andcommitted
repl: avoid parsing division operator as regex
This improves the heuristic used in multiline-prompt mode to determine whether a given slash character is at the beginning of a regular expression. PR-URL: #10103 Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com> Reviewed-By: James M Snell <jasnell@keybase.io> Fixes: #9300
1 parent 6dbff7a commit fac6111

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

lib/repl.js

Lines changed: 8 additions & 1 deletion

test/parallel/test-repl.js

Lines changed: 10 additions & 0 deletions

0 commit comments

Comments
 (0)