mirror of
				https://github.com/awesome-selfhosted/awesome-selfhosted.git
				synced 2025-11-04 06:39:39 +01:00 
			
		
		
		
	prevent error when . is in the name
				
					
				
			This commit is contained in:
		
							parent
							
								
									d633bfc460
								
							
						
					
					
						commit
						5b1fdfbce8
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -83,7 +83,7 @@ function testDescription(text) {
 | 
				
			||||||
function testSrcDemCli(text) { 
 | 
					function testSrcDemCli(text) { 
 | 
				
			||||||
  let testC = text.search(/\(\[|\)\,|\)\)/);
 | 
					  let testC = text.search(/\(\[|\)\,|\)\)/);
 | 
				
			||||||
  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 = /(\`.*\` \`.*\`$)/;
 | 
				
			||||||
  if ((testC > -1) && (!testD.test(text))) {
 | 
					  if ((testC > -1) && (!testD.test(text))) {
 | 
				
			||||||
    let d1 = testD1.exec(text)[1];
 | 
					    let d1 = testD1.exec(text)[1];
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue