Skip to content

Commit

Permalink
Merge pull request #9 from annamatveev/patch-2
Browse files Browse the repository at this point in the history
Change separator typo
  • Loading branch information
jimmycuadra committed Mar 22, 2020
2 parents 099c489 + 02ea945 commit 8dde78f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/shellwords.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ exports.split = (line = "") ->
| #
(\S) # Garbage
) #
(\s|$)? # Seperator
(\s|$)? # Separator
///, (match) ->
[raw, word, sq, dq, escape, garbage, seperator] = match
[raw, word, sq, dq, escape, garbage, separator] = match

throw new Error "Unmatched quote" if garbage?

field += (word or (sq or dq or escape).replace(/\\(?=.)/, ""))

if seperator?
if separator?
words.push field
field = ""

Expand Down

0 comments on commit 8dde78f

Please sign in to comment.