mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted.git
synced 2025-04-28 23:14:19 +02:00
Fix regex for mainlink.
This commit is contained in:
parent
d0d39d63c9
commit
858e2c9670
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue