aboutsummaryrefslogtreecommitdiff
path: root/parse.js
diff options
context:
space:
mode:
Diffstat (limited to 'parse.js')
-rw-r--r--parse.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/parse.js b/parse.js
index 77e7b52..81269e7 100644
--- a/parse.js
+++ b/parse.js
@@ -56,7 +56,9 @@ function findExpression(data, expr, start = 0)
function parseCluttered(s)
{
- return s.replaceAll(".", "").replaceAll(" ", "").replaceAll("<", "(").replaceAll(">", ")").toUpperCase();
+ if (!(typeof s === "string"))
+ return "";
+ return s.replaceAll(".", "").replaceAll(" ", "").toUpperCase();
}
function parseClasses(classData, DB)