mirror of
				https://github.com/awesome-selfhosted/awesome-selfhosted.git
				synced 2025-10-31 06:42:47 +00:00 
			
		
		
		
	Update regex checks for Source Code, Demo, Clients
This commit is contained in:
		| @@ -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))' | //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) {  | 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)\]\([^)\]]*\))*\))(?= \`?)/; |   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 testD1 = /(^- \W[a-zA-Z0-9-_ .]*\W{0,2}http[^\[]*)(?<= )/; | ||||||
|   const testD2 = /(\`.*\` \`.*\`$)/; |   const testD2 = /(\`.*\` \`.*\`$)/; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user