aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'data/lib/util.js')
-rw-r--r--data/lib/util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/lib/util.js b/data/lib/util.js
index 064887c..dc927b6 100644
--- a/data/lib/util.js
+++ b/data/lib/util.js
@@ -294,7 +294,7 @@ function removeCSVValue(str, value) {
*/
function filterByRegexp(list, chosingMark) {
var chosenPair = [];
- if (list.length > 0) {
+ if (list && list.length > 0) {
chosenPair = list.filter(function (pair) {
return new RegExp(pair.regexp, "i").test(chosingMark);
});