aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNathan Rew <nrew225@gmail.com>2020-08-16 02:12:27 +0000
committernodiscc <nodiscc@gmail.com>2020-09-05 12:53:21 +0000
commitb0cb23bd921d472be3d1091eab8abd1b88fb4ace (patch)
tree2d0a11194aaea35e6df01e8f8b53e93697c0178c /tests
parentUpdate regex checks for Source Code, Demo, Clients (diff)
downloadawesome-selfhosted-b0cb23bd921d472be3d1091eab8abd1b88fb4ace.tar.gz
awesome-selfhosted-b0cb23bd921d472be3d1091eab8abd1b88fb4ace.zip
Fix regex for mainlink.
Diffstat (limited to 'tests')
-rw-r--r--tests/test.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test.js b/tests/test.js
index 5e44c29a..36ee3e4e 100644
--- a/tests/test.js
+++ b/tests/test.js
@@ -57,7 +57,7 @@ function parseLicense(md) {
//Test '- [Name](http://homepage/)'
function testMainLink(text) {
- let testA = /(^ {0,2}- \[.*?\]\(.*\))(?=.?-? ?\w)/;
+ let testA = /(^ {0,2}- \[.*?\]\([^)]*\.[^)]*?\))(?=\ ?\-?\ ?\w)/ // /(^ {0,2}- \[.*?\]\(.*\))(?=.?-? ?\w)/;
const testA1 = /(- \W?\w*\W{0,2}.*?\)?)( .*$)/;
if (!testA.test(text)) {
let a1 = testA1.exec(text)[2];