1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-02-23 14:30:02 +00:00

Simplified wiki link CamelCase regexp

Removed rule that made `AAaaa` be a wikilink
This commit is contained in:
Jeremy Ruston 2012-06-05 15:19:27 +01:00
parent e85ae59fd8
commit ca8cf1a386

View File

@ -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;