This commit is contained in:
17
node_modules/space-separated-tokens/index.js
generated
vendored
Normal file
17
node_modules/space-separated-tokens/index.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
'use strict'
|
||||
|
||||
exports.parse = parse
|
||||
exports.stringify = stringify
|
||||
|
||||
var empty = ''
|
||||
var space = ' '
|
||||
var whiteSpace = /[ \t\n\r\f]+/g
|
||||
|
||||
function parse(value) {
|
||||
var input = String(value || empty).trim()
|
||||
return input === empty ? [] : input.split(whiteSpace)
|
||||
}
|
||||
|
||||
function stringify(values) {
|
||||
return values.join(space).trim()
|
||||
}
|
||||
Reference in New Issue
Block a user