From b0cb23bd921d472be3d1091eab8abd1b88fb4ace Mon Sep 17 00:00:00 2001
From: Nathan Rew <nrew225@gmail.com>
Date: Sun, 16 Aug 2020 11:12:27 +0900
Subject: [PATCH] Fix regex for mainlink.

---
 tests/test.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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];