summaryrefslogtreecommitdiff
path: root/source/github-helpers/api.ts
diff options
context:
space:
mode:
authorGravatar Federico Brigante <me@fregante.com> 2022-06-24 20:08:25 +0700
committerGravatar GitHub <noreply@github.com> 2022-06-24 20:08:25 +0700
commitfbeac7f6d94f1191bbacdeb47709110ab8aa84c0 (patch)
treeb1dc03e50168c030941477d14e329b9fc5526e5d /source/github-helpers/api.ts
parent138a5470dde5c60a7b9d37ecb9669d37d5994a0b (diff)
downloadrefined-github-fbeac7f6d94f1191bbacdeb47709110ab8aa84c0.tar.gz
refined-github-fbeac7f6d94f1191bbacdeb47709110ab8aa84c0.tar.zst
refined-github-fbeac7f6d94f1191bbacdeb47709110ab8aa84c0.zip
Restore `pinned-issues-update-time` (#5722)
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 dc27b44a..47a2a935 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 = (...keys: Array<string | number>): string => '_' + String(keys).replace(/[^a-z\d]/gi, '_');
export class RefinedGitHubAPIError extends Error {
response: AnyObject = {};