diff options
author | Nathan Rew <nrew225@gmail.com> | 2020-08-16 01:03:04 +0000 |
---|---|---|
committer | nodiscc <nodiscc@gmail.com> | 2020-09-05 12:53:21 +0000 |
commit | 98e01c976929ed72377975f2a3207a554cfd9433 (patch) | |
tree | 06b2e1d00f159501f25fb7fa01b8574354bee694 /tests/test.js | |
parent | prevent error when `.` is in the name (diff) | |
download | awesome-selfhosted-98e01c976929ed72377975f2a3207a554cfd9433.tar.gz awesome-selfhosted-98e01c976929ed72377975f2a3207a554cfd9433.zip |
Update regex checks for Source Code, Demo, Clients
Diffstat (limited to 'tests/test.js')
-rw-r--r-- | tests/test.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 = /(\`.*\` \`.*\`$)/; |