Skip to content

Commit

Permalink
[Fix] windows: Show failure location even if driver letter is lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
mkls authored and ljharb committed Oct 17, 2016
1 parent 8a7567a commit fb548b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,9 @@ Test.prototype._assert = function assert (ok, opts) {
Last part captures file path plus line no (and optional
column no).
/((?:\/|[A-Z]:\\)[^:\)]+:(\d+)(?::(\d+))?)/
/((?:\/|[a-zA-Z]:\\)[^:\)]+:(\d+)(?::(\d+))?)/
*/
var re = /^(?:[^\s]*\s*\bat\s+)(?:(.*)\s+\()?((?:\/|[A-Z]:\\)[^:\)]+:(\d+)(?::(\d+))?)/
var re = /^(?:[^\s]*\s*\bat\s+)(?:(.*)\s+\()?((?:\/|[a-zA-Z]:\\)[^:\)]+:(\d+)(?::(\d+))?)/
var m = re.exec(err[i]);

if (!m) {
Expand Down

0 comments on commit fb548b3

Please sign in to comment.