WIP - add extractor, generate snippet_data
This commit is contained in:
15
node_modules/is-invalid-path/index.js
generated
vendored
Normal file
15
node_modules/is-invalid-path/index.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
/*!
|
||||
* is-invalid-path <https://github.com/jonschlinkert/is-invalid-path>
|
||||
*
|
||||
* Copyright (c) 2015, Jon Schlinkert.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var isGlob = require('is-glob');
|
||||
var re = /[‘“!#$%&+^<=>`]/;
|
||||
|
||||
module.exports = function (str) {
|
||||
return (typeof str !== 'string') || isGlob(str) || re.test(str);
|
||||
};
|
||||
Reference in New Issue
Block a user