Don't allow < and > in external links

print-window-tiddler
Jeremy Ruston 2013-05-31 17:42:40 +01:00
rodzic c566284158
commit b0d183070c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -26,7 +26,7 @@ exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /~?(?:file|http|https|mailto|ftp|irc|news|data):[^\s'"]+(?:\/|\b)/mg;
this.matchRegExp = /~?(?:file|http|https|mailto|ftp|irc|news|data):[^\s'"<>]+(?:\/|\b)/mg;
};
exports.parse = function() {