Skip to content

Commit

Permalink
Merge pull request #42 from lsst-sqre/tickets/DM-42885
Browse files Browse the repository at this point in the history
Correct interpolation syntax
  • Loading branch information
athornton authored Feb 15, 2024
2 parents e8ef61f + 62fbb41 commit b890605
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/linkticket.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = (robot) ->
txt = txt.replace(/`.*?`/g, "")
# Protect explicit Jira URLs by making them non-URLs
txt = txt.replace(///
(#{url}/\browse\/)
(#{url})\/browse\/
///g, "")
# Protect "tickets/DM-" (only) when not part of a URL or path
txt = txt.replace(/tickets\/DM-/g, "DM-")
Expand Down Expand Up @@ -75,7 +75,7 @@ issueResponses = (robot, msg) ->
robot.http(urlstr,{ecdhCurve: 'auto'}).auth(user, pwd).get() (err, res, body) ->
# The callback only sees the latest versions of these variables,
# so regenerate them from the response
urlstr = url + "#{url}#{res.req.path}"
urlstr = "#{url}#{res.req.path}"
ticketId = res.req.path
ticketId = ticketId.replace(/.*\//, "")
if (not res)
Expand Down

0 comments on commit b890605

Please sign in to comment.