Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract local path logic and add tests. #341

Merged
merged 15 commits into from
Feb 11, 2017
Prev Previous commit
Better regex.
- CR feedback
  • Loading branch information
zigomir committed Feb 11, 2017
commit adb69365929e4e81357c4ade0e7c5fcca92b0407
2 changes: 1 addition & 1 deletion lib/local-path.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var path = require('path')

module.exports = {
isLocalPath: function (templatePath) {
return /^[./]|(^[a-z|A-Z]:)/.test(templatePath)
return /^[./]|(^[a-zA-Z]:)/.test(templatePath)
},

getTemplatePath: function (templatePath) {
Expand Down