From 43661e8888fadbdf7796689cfb653604463a0f7e Mon Sep 17 00:00:00 2001 From: ccd0 Date: Thu, 25 Jul 2019 20:41:06 -0700 Subject: [PATCH] Put backticks around template to make transition so we can compile Coffeescript before interpolating it. #829 --- src/main/Main.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/Main.coffee b/src/main/Main.coffee index 57f9dac410..0484984406 100644 --- a/src/main/Main.coffee +++ b/src/main/Main.coffee @@ -554,7 +554,7 @@ Main = title += " (+#{errors.length - 1} other errors)" if errors.length > 1 details = '' addDetails = (text) -> - unless encodeURIComponent(title + details + text + '\n').length > <%= meta.newIssueMaxLength - meta.newIssue.replace(/%(title|details)/, '').length %> + unless encodeURIComponent(title + details + text + '\n').length > `<%= meta.newIssueMaxLength - meta.newIssue.replace(/%(title|details)/, '').length %>` details += text + '\n' addDetails """ [Please describe the steps needed to reproduce this error.]