fix: linting error - incomplete url scheme check

This commit is contained in:
mannilakash committed 2026-04-01 17:27:29 -04:00
1 parent 023cf5782d
commit ae85af26bf
4 files changed
+3 -14

No files matched your search

-11
View File
@@ -1,11 +0,0 @@
{
"permissions": {
"allow": [
"Bash(gh pr:*)",
"Bash(gh api:*)",
"WebFetch(domain:github.com)",
"Bash(xargs grep:*)",
"Bash(npx tsc:*)"
]
}
}
+1 -1
View File
@@ -817,7 +817,7 @@ const CreateMonitorPage = () => {
field.onChange(
e.target.value
.replace(/[<>]/g, "")
.replace(/javascript:/gi, "")
.replace(/(?:javascript|data|vbscript):/gi, "")
.replace(/[^\t\x20-\x7E\x80-\xFF]/g, "") // RFC 7230 header-safe chars only
.slice(0, 500)
);
+1 -1
View File
@@ -446,7 +446,7 @@ export const SettingsPage = () => {
field.onChange(
e.target.value
.replace(/[<>]/g, "")
.replace(/javascript:/gi, "")
.replace(/(?:javascript|data|vbscript):/gi, "")
.replace(/[^\t\x20-\x7E\x80-\xFF]/g, "") // RFC 7230 header-safe chars only
.slice(0, 500)
);
@@ -61,7 +61,7 @@ export class HttpProvider implements IStatusProvider<HttpStatusPayload> {
return value
.replace(/[<>]/g, "")
.replace(/javascript:/gi, "")
.replace(/(?:javascript|data|vbscript):/gi, "")
.replace(/[^\t\x20-\x7E\x80-\xFF]/g, "") // allow only RFC 7230 header-safe characters
.trim()
.slice(0, 500);