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:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user