Blame view
node_modules/underscore.string/helper/defaultToWhiteSpace.js
270 Bytes
f7563de62
|
1 2 3 4 5 6 7 8 9 10 |
var escapeRegExp = require('./escapeRegExp'); module.exports = function defaultToWhiteSpace(characters) { if (characters == null) return '\\s'; else if (characters.source) return characters.source; else return '[' + escapeRegExp(characters) + ']'; }; |