fix(ssr): file path

This commit is contained in:
qingwei.li 2017-05-30 15:27:04 +08:00
commit 79a83bc17d
No known key found for this signature in database
GPG key ID: B6DDC2F7AE80B2F4
2 changed files with 3 additions and 2 deletions

View file

@ -36,7 +36,7 @@ export function getPath (...args) {
}
export const isAbsolutePath = cached(path => {
return /(:|(\/{2}))/.test(path)
return /(:|(\/{2}))/g.test(path)
})
export const getParentPath = cached(path => {