Simplified wiki link CamelCase regexp

Removed rule that made `AAaaa` be a wikilink
print-window-tiddler
Jeremy Ruston 2012-06-05 15:19:27 +01:00
rodzic e85ae59fd8
commit ca8cf1a386
1 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

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