We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7245a5f commit 063dd12Copy full SHA for 063dd12
.github/scripts/bot-verified-commits.js
@@ -13,10 +13,11 @@ function sanitizeString(input) {
13
// markdown injection or unwanted @mentions that spam teams
14
function sanitizeMarkdown(input) {
15
return sanitizeString(input)
16
- .replace(/[`*_~[\]()]/g, '\\$&') // Escape markdown special chars
17
- .replace(/@/g, '@\u200b'); // Break @mentions with zero-width space
+ .replace(/[\x60*_~[\]()]/g, '\\$&') // Escape markdown special chars (backtick via hex)
+ .replace(/@/g, '@\u200b'); // Break @mentions with zero-width space
18
}
19
20
+
21
// Validates URL format and returns fallback if invalid
22
function sanitizeUrl(input, fallback) {
23
const cleaned = sanitizeString(input);
0 commit comments