repl: /x/dg is autocompleted to bogus /x/dgram
v21.2.0
$ node
Welcome to Node.js v21.2.0.
Type ".help" for more information.
> /x/dg
/x/dgram
^
Uncaught SyntaxError: Invalid regular expression flags
>
IOW, the REPL autocompletes /x/dg<CR> to /x/dgram.
This mainly requires more fine granular suggestions. Regular expressions can definitely be handled better and this also applies to e.g., not suggesting top level modules as property (/a/.dg).
@nodejs/repl
The auto-suggest feature looks a bit weird right now, is this expected?
I think the suggested content should require confirmation before use. For example, if I input dg and then press Enter directly, I expect to execute dg, not dgram.
The auto-suggest feature looks a bit weird right now, is this expected?
I think the suggested content should require confirmation before use. For example, if I input
dgand then press Enter directly, I expect to executedg, notdgram.
echo. IMO auto completion should be done by a "TAB".