aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/util.js')
-rw-r--r--ext/bg/js/util.js4
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(' ');
+}