nak no longer includes a space after the colon

This commit is contained in:
Kevin Sawicki
2013-04-02 16:49:17 -07:00
parent 955e1571a2
commit 34ca5ce949
2 changed files with 3 additions and 3 deletions

View File

@@ -247,7 +247,7 @@ describe "Project", ->
stdout = BufferedProcess.prototype.bufferStream.argsForCall[0][1]
stdout ":#{fs.resolveOnLoadPath('fixtures/dir/a')}\n"
stdout "1;0 3: aaa bbb\n2;3 2: cc aa cc\n"
stdout "1;0 3:aaa bbb\n2;3 2:cc aa cc\n"
expect(iterator.argsForCall[0][0]).toEqual
path: project.resolve('a')

View File

@@ -165,9 +165,9 @@ class Project
state = 'readingPath'
path = null
else
colonIndex = line.indexOf(': ')
colonIndex = line.indexOf(':')
matchInfo = line.substring(0, colonIndex)
lineText = line.substring(colonIndex + 2)
lineText = line.substring(colonIndex + 1)
readMatches(matchInfo, lineText)
readMatches = (matchInfo, lineText) ->