fix(tokeniser): Tokenising a quote inside quoted parameter (#210)

This commit is contained in:
Ilya Puchka
2018-04-17 19:28:28 +01:00
committed by Kyle Fuller
parent 88e54ab4ba
commit 7c499cc077
3 changed files with 19 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ extension String {
if separate != separator {
word.append(separate)
} else if singleQuoteCount % 2 == 0 && doubleQuoteCount % 2 == 0 && !word.isEmpty {
} else if (singleQuoteCount % 2 == 0 || doubleQuoteCount % 2 == 0) && !word.isEmpty {
components.append(word)
word = ""
}