constslpatt=/^\s{0,2}-\s\[.*?\]\(.*?\) - .{0,249}?\. \(\[Demo\b\]\(.*?\), \[Source Code\b\]\(.*?\)\) `.*?` `.*?`/;// Regex for entries with demo and source code
if(patt.test(text)===true){
constnodpatt=/^\s{0,2}-\s\[.*?\]\(.*?\) - .{0,249}?\. \(\[Source Code\]\(.*?\)\) `.*?` `.*?`/;// Regex for entries with no demo
constnospatt=/^\s{0,2}-\s\[.*?\]\(.*?\) - .{0,249}?\. \(\[Demo\]\(.*?\)\) `.*?` `.*?`/;// Regex for entries with no source code
constpnodnospatt=/^\s{0,2}-\s\[.*?\]\(.*?\) `⚠` - .{0,249}?\. `.*?` `.*?`/;// Regex for entries with proprietary with no demo and no source code
constpslpatt=/^\s{0,2}-\s\[.*?\]\(.*?\) `⚠` - .{0,249}?\. \(\[Demo\b\]\(.*?\), \[Source Code\b\]\(.*?\)\) `.*?` `.*?`/;// Regex for entries with proprietary with demo and source code
constpnodpatt=/^\s{0,2}-\s\[.*?\]\(.*?\) `⚠` - .{0,249}?\. \(\[Source Code\]\(.*?\)\) `.*?` `.*?`/;// Regex for entries with proprietary with no demo
constpnospatt=/^\s{0,2}-\s\[.*?\]\(.*?\) `⚠` - .{0,249}?\. \(\[Demo\]\(.*?\)\) `.*?` `.*?`/;// Regex for entries with proprietary with no source code
if(nodnospatt.test(text)===true){
returntrue;
}elseif(slpatt.test(text)===true){
returntrue;
}elseif(nodpatt.test(text)===true){
returntrue;
}elseif(nospatt.test(text)===true){
returntrue;
}elseif(pnodnospatt.test(text)===true){
returntrue;
}elseif(pslpatt.test(text)===true){
returntrue;
}elseif(pnodpatt.test(text)===true){
returntrue;
}elseif(pnospatt.test(text)===true){
returntrue;
returntrue;
}
}
returnfalse;
returnfalse;
@ -59,7 +38,7 @@ function entryErrorCheck(md) {
for(leti=0,len=entries.length;i<len;i+=1){// Loop to create array of objects
for(leti=0,len=entries.length;i<len;i+=1){// Loop to create array of objects
entryArray[i]=newObject;
entryArray[i]=newObject;
entryArray[i].raw=entries[i];
entryArray[i].raw=entries[i];
if(entryFilter(entries[i])===true){// filter out lines that don't with * [)
if(entryFilter(entries[i])===true){// filter out lines that don't start with * [)
total+=1;
total+=1;
entryArray[i].name=namepatt.exec(entries[i])[1];// Parses name of entry
entryArray[i].name=namepatt.exec(entries[i])[1];// Parses name of entry
entryArray[i].pass=findPattern(entries[i]);// Tests against known patterns
entryArray[i].pass=findPattern(entries[i]);// Tests against known patterns