nl_tokens: Replace backslashes for cross - platform usage Adapted from https : // github . com / sindresorhus / slash
pl_tokens: function replaceBackSlashes ( input ) { var isExtendedLengthPath = / ^\\\\\?\\ / . test ( input ) ; var hasNonAscii = / [^\x00-\x80]+ / . <mask> ( input ) ; if ( isExtendedLengthPath || hasNonAscii ) { return input ; } return input . replace ( / \\ / g , '/' ) ; }