Put backticks around template to make transition so we can compile Coffeescript before interpolating it. #829

This commit is contained in:
ccd0 2019-07-25 20:41:06 -07:00
parent fba3d2d18e
commit 43661e8888

View File

@ -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.]