From 34ca5ce9490c57faf33d100a82dfcbb98749f73a Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 2 Apr 2013 16:49:17 -0700 Subject: [PATCH] nak no longer includes a space after the colon --- spec/app/project-spec.coffee | 2 +- src/app/project.coffee | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/app/project-spec.coffee b/spec/app/project-spec.coffee index 5faf96952..48f483fc5 100644 --- a/spec/app/project-spec.coffee +++ b/spec/app/project-spec.coffee @@ -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') diff --git a/src/app/project.coffee b/src/app/project.coffee index 220c468a9..0ad04ed57 100644 --- a/src/app/project.coffee +++ b/src/app/project.coffee @@ -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) ->