Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Fix: Debugger Interface Command Issue - RegEx #1144

Closed
wants to merge 2 commits into from

Conversation

siddMahen
Copy link

When the debugger interface handles commands, (_debugger.js), in function handleCommand(), it uses regex which accepts incorrect input. For example: (line 946/master)

}else if (/^step/.test(cmd) || /^s/.test(cmd)){

This incorrectly returns true if 'seige' or 'sigh' are input, because they begin with s, resulting in confusing debugger behaviour.

Changes:

}else if (/^s(tep)?$/.test(cmd)){

Should return the correct response for both 's' and 'step'.

Siddharth Mahendraker added 2 commits June 2, 2011 23:08
…ut non-valid commands, resulting in confusing behaviour.
…ut non-valid commands, resulting in confusing behaviour.
@ry ry closed this in 37d529f Jun 3, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants