aboutsummaryrefslogtreecommitdiffstats
path: root/test.js
diff options
context:
space:
mode:
authornrew225 <nrew225@gmail.com>2018-07-03 02:13:30 +0000
committernrew225 <nrew225@gmail.com>2018-07-03 02:13:30 +0000
commit25c9c561b01ebbdb4f320b73a9f557c1dcd33e57 (patch)
tree837cc5261532caba81a8cfae50f547e098366ffa /test.js
parentFix test.js (diff)
downloadawesome-selfhosted-25c9c561b01ebbdb4f320b73a9f557c1dcd33e57.tar.gz
awesome-selfhosted-25c9c561b01ebbdb4f320b73a9f557c1dcd33e57.zip
Fix test.js
Fix 1 more regex error.
Diffstat (limited to 'test.js')
-rw-r--r--test.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.js b/test.js
index c6f8a0b1..94e7798c 100644
--- a/test.js
+++ b/test.js
@@ -17,7 +17,7 @@ function split(text) { // Function to split lines into array
}
function findPattern(text) { // Test entries against 8 patterns. If matches pattern returns true
- const nodnospatt = /^-\s{0,2}\s\[.*?\]\(.*?\) - .{0,249}?\. `.*?` `.*?`/; // Regex for entries with no demo and no source code
+ const nodnospatt = /^\s{0,2}-\s\[.*?\]\(.*?\) - .{0,249}?\. `.*?` `.*?`/; // Regex for entries with no demo and no source code
const slpatt = /^\s{0,2}-\s\[.*?\]\(.*?\) - .{0,249}?\. \(\[Demo\b\]\(.*?\), \[Source Code\b\]\(.*?\)\) `.*?` `.*?`/; // Regex for entries with demo and source code
const nodpatt = /^\s{0,2}-\s\[.*?\]\(.*?\) - .{0,249}?\. \(\[Source Code\]\(.*?\)\) `.*?` `.*?`/; // Regex for entries with no demo
const nospatt = /^\s{0,2}-\s\[.*?\]\(.*?\) - .{0,249}?\. \(\[Demo\]\(.*?\)\) `.*?` `.*?`/; // Regex for entries with no source code