[Pkg-javascript-commits] [node-lcov-parse] 25/45: Fixed windows file path issues
Bastien Roucariès
rouca at moszumanska.debian.org
Wed Sep 6 09:46:17 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-lcov-parse.
commit 7ac70b896c3e02fe232e0576d9d0e22bbbb03420
Author: Florian Rüberg <florian.rueberg at gmail.com>
Date: Fri Apr 18 12:16:56 2014 +0200
Fixed windows file path issues
Only the first ':' should be split. Because this is valid:
SF:C:\Users\fru\Desktop\...
---
lib/index.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/index.js b/lib/index.js
index 3512c18..55edcab 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -13,8 +13,9 @@ var walkFile = function(str, cb) {
[ 'end_of_record' ].concat(str.split('\n')).forEach(function(line) {
line = line.trim();
-
- var parts = line.split(':'), lines, fn;
+ var allparts = line.split(':');
+ var parts = [allparts.shift(), allparts.join(':')];
+ var lines, fn;
switch (parts[0].toUpperCase()) {
case 'TN':
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-lcov-parse.git
More information about the Pkg-javascript-commits
mailing list