Initial commit
This commit is contained in:
9
node_modules/serve-handler/src/glob-slash.js
generated
vendored
Normal file
9
node_modules/serve-handler/src/glob-slash.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/* ! The MIT License (MIT) Copyright (c) 2014 Scott Corgan */
|
||||
|
||||
// This is adopted from https://github.com/scottcorgan/glob-slash/
|
||||
|
||||
const path = require('path');
|
||||
const normalize = value => path.posix.normalize(path.posix.join('/', value));
|
||||
|
||||
module.exports = value => (value.charAt(0) === '!' ? `!${normalize(value.substr(1))}` : normalize(value));
|
||||
module.exports.normalize = normalize;
|
||||
Reference in New Issue
Block a user