Skip to content

Commit 7b1103b

Browse files
authored
Escape the feature name in issue body (#415)
Fixes #410.
1 parent a6ee6f9 commit 7b1103b

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

package-lock.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"@octokit/rest": "^22.0.0",
2323
"@types/node": "^24.5.2",
2424
"dedent": "^1.7.0",
25+
"markdown-escape": "^2.0.0",
2526
"prettier": "^3.2.5",
2627
"tsx": "^4.7.1",
2728
"typescript": "^5.3.3",

scripts/update-issues.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import dedent from "dedent";
44

55
import { Octokit } from "@octokit/rest";
66
import { throttling } from "@octokit/plugin-throttling";
7+
import escape from "markdown-escape";
78

89
const dryRun = process.argv.includes("--dry-run");
910

@@ -108,7 +109,7 @@ function issueBody(id: string, data: (typeof features)[string]) {
108109
// TODO: include MDN links (before caniuse link) when we have web-features-mappings
109110
// as a dependency (see above).
110111
return dedent`
111-
_This GitHub issue is for collecting web developer signals for ${data.name}._
112+
_This GitHub issue is for collecting web developer signals for ${escape(data.name)}._
112113
113114
${data.description_html}
114115

0 commit comments

Comments
 (0)