protractor
Advanced tools
Comparing version 2.5.0 to 2.5.1
@@ -101,12 +101,12 @@ var path = require('path'), | ||
// https://github.com/angular/protractor/issues/2413 | ||
var lineNumber = ''; | ||
var parsedPath = path.parse(patterns[i]); | ||
parsedPath.base = parsedPath.base.replace(/:\d+/, function (match) { | ||
lineNumber = match; | ||
return ''; | ||
}); | ||
// TODO: when we deprecated node < v0.12 switch to using path.parse as in | ||
// d6aebbad6e9b191fef141472887637ee4318438e | ||
var fileName = patterns[i]; | ||
var lineNumber = /:\d+$/.exec(fileName); | ||
if (lineNumber) { | ||
fileName = fileName.slice(0, lineNumber.index); | ||
lineNumber = lineNumber[0].slice(1); | ||
} | ||
var matches = glob.sync(fileName, {cwd: cwd}); | ||
var filePath = path.format(parsedPath); | ||
var matches = glob.sync(filePath, {cwd: cwd}); | ||
if (!matches.length && !opt_omitWarnings) { | ||
@@ -118,3 +118,3 @@ log.warn('pattern ' + patterns[i] + ' did not match any files.'); | ||
if (lineNumber) { | ||
resolvedPath += lineNumber; | ||
resolvedPath += ':' + lineNumber; | ||
} | ||
@@ -121,0 +121,0 @@ resolvedFiles.push(resolvedPath); |
@@ -56,3 +56,3 @@ { | ||
"license": "MIT", | ||
"version": "2.5.0" | ||
"version": "2.5.1" | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1864836
11988
162