From 011d3cf779556cd63595bc30e0df92fc059b07dd Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 23 Aug 2013 16:18:43 +1000 Subject: [PATCH] minor style change --- .../javascripts/discourse/dialects/github_code_dialect.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/dialects/github_code_dialect.js b/app/assets/javascripts/discourse/dialects/github_code_dialect.js index 515c4d0edfe..f1a717ef9d2 100644 --- a/app/assets/javascripts/discourse/dialects/github_code_dialect.js +++ b/app/assets/javascripts/discourse/dialects/github_code_dialect.js @@ -18,7 +18,8 @@ Discourse.Dialect.on("register", function(event) { @return {Array} the JsonML containing the markup or undefined if nothing changed. @namespace Discourse.Dialect **/ - dialect.block['github_code'] = function githubCode(block, next) { + dialect.block.github_code = function githubCode(block, next) { + var m = /^`{3}([^\n]+)?\n?([\s\S]*)?/gm.exec(block); if (m) {