From e51f43886b0c1c191dd1f4b0e8fceaf83034c8ba Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Fri, 21 Oct 2016 21:33:54 -0700 Subject: Fixing blank tags --- ext/bg/js/util.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/bg/js/util.js') 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(' '); +} -- cgit v1.2.3