Loosened dash formatting rule

It no longer has to be followed by whitespace, instead it must be
followed by anything other than a dash.
print-window-tiddler
Jeremy Ruston 2012-12-20 09:26:59 +00:00
rodzic 5c2f698842
commit 2689f6b1e5
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -11,8 +11,6 @@ This is an en-dash: --
This is an em-dash: ---
}}}
Dashes must be followed by whitespace in order to be distinguished from strikethrough notation (`--strikethrough--`).
\*/
(function(){
@ -25,7 +23,7 @@ exports.name = "dash";
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /-{2,3}(?=\s)/mg;
this.matchRegExp = /-{2,3}[^-]/mg;
};
exports.parse = function() {