[Snapshot + Restore] prevent # char in repository name (#97495)

This commit is contained in:
Alison Goryachev 2021-04-20 08:00:37 -04:00 committed by GitHub
parent 12c2e7e488
commit f572fb9d7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,7 @@ export interface RepositorySettingsValidation {
[key: string]: string[];
}
export const INVALID_NAME_CHARS = ['"', '*', '\\', '<', '|', ',', '>', '/', '?'];
export const INVALID_NAME_CHARS = ['"', '*', '\\', '<', '|', ',', '>', '/', '?', '#'];
const isStringEmpty = (str: string | null): boolean => {
return str ? !Boolean(str.trim()) : true;