A list of Free Software network services and web applications which can be hosted on your own servers
Fix regex for mainlink.
Nathan Rewb0cb23bd921d
diff --git a/tests/test.js b/tests/test.jsindex 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];