diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-10-21 21:33:54 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-10-21 21:33:54 -0700 |
commit | e51f43886b0c1c191dd1f4b0e8fceaf83034c8ba (patch) | |
tree | b58248844bf0b2f36af938d5914c38a14964db57 /ext/bg/js/util.js | |
parent | 83f5bd24dfeb60637141ddc7cd0b99513ac74eec (diff) |
Fixing blank tags
Diffstat (limited to 'ext/bg/js/util.js')
-rw-r--r-- | ext/bg/js/util.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js index f10e4291..4e0cc671 100644 --- a/ext/bg/js/util.js +++ b/ext/bg/js/util.js @@ -112,3 +112,7 @@ function applyTagMeta(tag, meta) { return tag; } + +function splitField(field) { + return field.length === 0 ? [] : field.split(' '); +} |