(function() {

Discourse.Dialect.inlineBetween({
    start: '\[yuml\]',
    stop: '\[\/yuml\]',
    rawContents: true,
    emitter: function(contents) {
        var uri = "http://yuml.me/diagram/scruffy/class/" + encodeURIComponent(contents.replace(/\n/g, ","));
        return "<img src=\"" + uri + "\" />";
    }
})
    
})();

(function() {

Discourse.Dialect.inlineBetween({
    start: '[yuml]',
    stop: '[/yuml]',
    rawContents: true,
    emitter: function(contents) {
        var uri = "http://yuml.me/diagram/scruffy/class/" + encodeURIComponent(contents.replace(/\n/g, ","));
        return "<img src=\"" + uri + "\" />";
    }
})
    
})();

Remove regex pattern from start and stop
Remove regex pattern from start and stop

It appears these are no longer regex patterns. :(