mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-11-04 01:23:01 +00:00 
			
		
		
		
	Simplified wiki link CamelCase regexp
Removed rule that made `AAaaa` be a wikilink
This commit is contained in:
		@@ -24,12 +24,10 @@ var textPrimitives = {
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
textPrimitives.unWikiLink = "~";
 | 
			
		||||
textPrimitives.wikiLink = "(?:(?:" + textPrimitives.upperLetter + "+" +
 | 
			
		||||
textPrimitives.wikiLink = textPrimitives.upperLetter + "+" +
 | 
			
		||||
	textPrimitives.lowerLetter + "+" +
 | 
			
		||||
	textPrimitives.upperLetter +
 | 
			
		||||
	textPrimitives.anyLetter + "*)|(?:" +
 | 
			
		||||
	textPrimitives.upperLetter + "{2,}" +
 | 
			
		||||
	textPrimitives.lowerLetter + "+))";
 | 
			
		||||
	textPrimitives.anyLetter + "*";
 | 
			
		||||
 | 
			
		||||
exports.regExpString = textPrimitives.unWikiLink + "?" + textPrimitives.wikiLink;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user