From 98e01c976929ed72377975f2a3207a554cfd9433 Mon Sep 17 00:00:00 2001 From: Nathan Rew Date: Sun, 16 Aug 2020 10:03:04 +0900 Subject: [PATCH] Update regex checks for Source Code, Demo, Clients --- tests/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.js b/tests/test.js index a62b01a7..5e44c29a 100644 --- a/tests/test.js +++ b/tests/test.js @@ -81,7 +81,7 @@ function testDescription(text) { //If present, tests '([Demo](http://url.to/demo), [Source Code](http://url.of/source/code), [Clients](https://url.to/list/of/related/clients-or-apps))' function testSrcDemCli(text) { - let testC = text.search(/\(\[|\)\,|\)\)/); + let testC = text.search(/\.\ \(|\.\ \[|\ \(\[[sSdDcC]/); // /\(\[|\)\,|\)\)/); 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 testD2 = /(\`.*\` \`.*\`$)/;