From 1b80f1ea394b81be5409f59a9d541b496a7a52e3 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Mon, 27 Jun 2016 01:11:56 +0530 Subject: [PATCH] Fix the build :fired: --- app/assets/javascripts/discourse/components/d-editor.js.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/components/d-editor.js.es6 b/app/assets/javascripts/discourse/components/d-editor.js.es6 index 90ef37e0c7e..0c0b9c43315 100644 --- a/app/assets/javascripts/discourse/components/d-editor.js.es6 +++ b/app/assets/javascripts/discourse/components/d-editor.js.es6 @@ -522,11 +522,11 @@ export default Ember.Component.extend({ formatCode() { const sel = this._getSelected(); if (sel.value.indexOf("\n") !== -1) { - return (this.siteSettings.code_formatting_style == "4-spaces-indent") ? + return (this.siteSettings.code_formatting_style === "4-spaces-indent") ? this._applySurround(sel, ' ', '', 'code_text') : this._addText(sel, '```\n' + sel.value + '\n```'); } else { - return (this.siteSettings.code_formatting_style == "4-spaces-indent") ? + return (this.siteSettings.code_formatting_style === "4-spaces-indent") ? this._applySurround(sel, '`', '`', 'code_text') : this._applySurround(sel, '```\n', '\n```', 'paste_code_text'); }