1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

fix path validation for Windows

This commit is contained in:
Dick Choi
2016-07-23 23:47:07 +09:00
parent 90613b7cc8
commit 2544b5b821

View File

@@ -202,8 +202,8 @@ function _saveCaches () {
} }
function addStorage (input) { function addStorage (input) {
if (!_.isString(input.path) || !input.path.match(/^\//)) { if (!_.isString(input.path)) {
return Promise.reject(new Error('Path must be absolute.')) return Promise.reject(new Error('Path must be a string.'))
} }
let key = keygen() let key = keygen()