Skip to content

Commit

Permalink
Windows : the disk letter can be in lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoah authored Jul 6, 2018
1 parent 7adfb1b commit 40ee35e
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 40ee35e

Please sign in to comment.