fix: Add space to the valid index characters list (#2316)

This commit is contained in:
Saumya Pandey
2021-07-15 00:35:47 +05:30
committed by GitHub
parent a9d758bb0c
commit 7ae3addea0
3 changed files with 3 additions and 4 deletions

View File

@@ -219,7 +219,6 @@
"Contents": "Contents",
"Headings you add to the document will appear here": "Headings you add to the document will appear here",
"Table of contents": "Table of contents",
"Contents": "Contents",
"By {{ author }}": "By {{ author }}",
"Are you sure you want to make {{ userName }} an admin? Admins can modify team and billing information.": "Are you sure you want to make {{ userName }} an admin? Admins can modify team and billing information.",
"Are you sure you want to make {{ userName }} a member?": "Are you sure you want to make {{ userName }} a member?",

View File

@@ -1,4 +1,4 @@
// @flow
export const validateIndexCharacters = (index: string) =>
/^[\x21-\x7E]+$/i.test(index);
new RegExp("^[\x20-\x7E]+$").test(index);