aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test.js
diff options
context:
space:
mode:
authorNathan Rew <nrew225@gmail.com>2020-08-16 00:16:50 +0000
committernodiscc <nodiscc@gmail.com>2020-09-05 12:53:21 +0000
commitf4370d335fed59cd040ecbc23afbf538712b915f (patch)
tree3dfe5e2cf7dd059d64062ffb50a529c7d0b4820b /tests/test.js
parentMerge pull request #2202 from awesome-selfhosted/fix-checks (diff)
downloadawesome-selfhosted-f4370d335fed59cd040ecbc23afbf538712b915f.tar.gz
awesome-selfhosted-f4370d335fed59cd040ecbc23afbf538712b915f.zip
prevent error when `.` is in the name
Diffstat (limited to 'tests/test.js')
-rw-r--r--tests/test.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test.js b/tests/test.js
index 9d2ef63c..a62b01a7 100644
--- a/tests/test.js
+++ b/tests/test.js
@@ -83,7 +83,7 @@ function testDescription(text) {
function testSrcDemCli(text) {
let testC = text.search(/\(\[|\)\,|\)\)/);
let testD = /(?<=\w. )(\(\[(Demo|Source Code|Clients)\]\([^)\]]*\)(, \[(Source Code|Clients)\]\([^)\]]*\))?(, \[(Source Code|Clients)\]\([^)\]]*\))*\))(?= \`?)/;
- const testD1 = /(^- \W[a-zA-Z0-9-_ ]*\W{0,2}http[^\[]*)(?<= )/;
+ const testD1 = /(^- \W[a-zA-Z0-9-_ .]*\W{0,2}http[^\[]*)(?<= )/;
const testD2 = /(\`.*\` \`.*\`$)/;
if ((testC > -1) && (!testD.test(text))) {
let d1 = testD1.exec(text)[1];