You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bad tab completion for object properties with special characters #21201
When an object has special characters as one of it's properties, node will autocomplete that property, but continue waiting for input (as the completed property is invalid syntax). This is not desired behaviour.
This issue is also present in Firefox, but not in Chrome.
what i did in my repl prototype to fix this was amend our autocomplete regex to allow [ additionally to . and then filter properties based on whether they were doing computed access or dot access and then format the output accordingly:
Activity
addaleax commentedon Jun 7, 2018
@nodejs/repl
devsnek commentedon Jun 8, 2018
what i did in my repl prototype to fix this was amend our autocomplete regex to allow
[additionally to.and then filter properties based on whether they were doing computed access or dot access and then format the output accordingly:https://github.com/devsnek/node-repl-prototype/blob/feae58a2de7b91b6e33f4c33194a69678f0bcc20/src/repl.js#L103-L109
i don't know how well this will mesh into our current repl code.
ryzokuken commentedon Jun 13, 2018
@devsnek did you look into it? Was there any progress?
repl: fix tab completion for object properties with special char
repl: fix tab completion for object properties with special char
repl: fix tab completion for object properties with special char