Skip to content

Commit

Permalink
fix: command name is also a string so addons
Browse files Browse the repository at this point in the history
assets
demo
demo-csharp
gdscript-docs-maker
LICENSE.md
logs
Makefile
README.md is a same valid commad as addons
assets
demo
demo-csharp
gdscript-docs-maker
LICENSE.md
logs
Makefile
README.md
  • Loading branch information
quentincaffeino committed Dec 23, 2021
1 parent 400fd0c commit 058eba2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/quentincaffeino/console/src/ConsoleLine.gd
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ func _parse_command(rawCommand):
var subString # String|null
for i in rawCommand.length():
# Quote
if rawCommand[i] in QUOTES and i > 0 and not rawCommand[i - 1] in SCREENERS:
if rawCommand[i] in QUOTES and \
(i == 0 or i > 0 and not rawCommand[i - 1] in SCREENERS):
if isInsideQuotes and rawCommand[i] == openQuote:
openQuote = null
isInsideQuotes = false
Expand Down

0 comments on commit 058eba2

Please sign in to comment.