Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed namespace creation regex #917

Merged
merged 1 commit into from
Oct 16, 2023
Merged

Fixed namespace creation regex #917

merged 1 commit into from
Oct 16, 2023

Conversation

Elson9
Copy link
Contributor

@Elson9 Elson9 commented Sep 20, 2023

Fixes #822

@@ -241,7 +241,7 @@ module.exports = {
info: any,
{ query, access }: any
) => {
const namespaceValidationRule = '^[a-z][a-z0-9-]{4,14}$';
const namespaceValidationRule = '^[a-z][a-z0-9-]{3,13}[a-z0-9]$';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't block the review but if these are just same variable, hoist them up as a single global const so you only have to change it once next time. Cuts down memory too.

@ikethecoder ikethecoder merged commit f8bcbfc into dev Oct 16, 2023
3 checks passed
@ikethecoder ikethecoder deleted the feature/regex-fix branch October 16, 2023 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Namespace can be created with unsupported characters
3 participants