projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
.gitignore added
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
node_modules
/
coc-prettier
/
node_modules
/
slash
/
index.js
1
'use strict';
2
module.exports = function (str) {
3
var isExtendedLengthPath = /^\\\\\?\\/.test(str);
4
var hasNonAscii = /[^\x00-\x80]+/.test(str);
5
6
if (isExtendedLengthPath || hasNonAscii) {
7
return str;
8
}
9
10
return str.replace(/\\/g, '/');
11
};