summaryrefslogtreecommitdiff
path: root/source/github-helpers/api.ts
diff options
context:
space:
mode:
authorGravatar yakov116 <16872793+yakov116@users.noreply.github.com> 2022-06-21 22:14:53 -0400
committerGravatar GitHub <noreply@github.com> 2022-06-21 22:14:53 -0400
commit5df837d70b18e0a551f618fcb7443f00c0a51b9d (patch)
tree0af8fc335286149c6d0d0a883a2d12ba06a53317 /source/github-helpers/api.ts
parent1cba9332ad659966251c73499b41343dd389bca3 (diff)
downloadrefined-github-5df837d70b18e0a551f618fcb7443f00c0a51b9d.tar.gz
refined-github-5df837d70b18e0a551f618fcb7443f00c0a51b9d.tar.zst
refined-github-5df837d70b18e0a551f618fcb7443f00c0a51b9d.zip
Escape the `@` symbol in api requests (#5714)
Diffstat (limited to 'source/github-helpers/api.ts')
-rw-r--r--source/github-helpers/api.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/github-helpers/api.ts b/source/github-helpers/api.ts
index 2ec0e5ee..dc27b44a 100644
--- a/source/github-helpers/api.ts
+++ b/source/github-helpers/api.ts
@@ -49,7 +49,7 @@ interface RestResponse extends AnyObject {
ok: boolean;
}
-export const escapeKey = (value: string | number): string => '_' + String(value).replace(/[ ./-]/g, '_');
+export const escapeKey = (value: string | number): string => '_' + String(value).replace(/[ ./-@]/g, '_');
export class RefinedGitHubAPIError extends Error {
response: AnyObject = {};