Skip to content

Commit

Permalink
Merge pull request #575 from ajoah/patch-1
Browse files Browse the repository at this point in the history
Windows : disk letter in lower case and before_capture option
  • Loading branch information
ChrisBAshton authored Jul 31, 2018
2 parents ce3accf + 40ee35e commit 36c1fe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wraith/helpers/utilities.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def convert_to_absolute(filepath)
elsif filepath[0] == "/"
# filepath is already absolute. return unchanged
filepath
elsif filepath.match(/^[A-Z]:\/(.+)$/)
elsif filepath.match(/^[A-Za-z]:\/(.+)$/)
# filepath is an absolute Windows path, e.g. C:/Code/Wraith/javascript/global.js. return unchanged
filepath
else
Expand Down

0 comments on commit 36c1fe7

Please sign in to comment.