reject whitespace characters in password regexp (#22232)

This commit is contained in:
Rhon Joe 2025-07-11 19:18:18 +08:00 committed by GitHub
commit 7f5087c6db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 7 additions and 10 deletions

View file

@ -276,3 +276,5 @@ export const ENABLE_WEBSITE_FIRECRAWL = getBooleanConfig(process.env.NEXT_PUBLIC
export const ENABLE_WEBSITE_WATERCRAWL = getBooleanConfig(process.env.NEXT_PUBLIC_ENABLE_WEBSITE_WATERCRAWL, DatasetAttr.DATA_PUBLIC_ENABLE_WEBSITE_WATERCRAWL, false)
export const VALUE_SELECTOR_DELIMITER = '@@@'
export const validPassword = /^(?=.*[a-zA-Z])(?=.*\d)\S{8,}$/