change component length limit from 32 characters to 64 (#376)

This commit is contained in:
Pumpudu 2023-01-11 01:33:17 +06:00 committed by GitHub
parent d6d163d200
commit fa72c5ba5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,8 +26,8 @@ const getValidationErrorsOfSlashedPath = (p: string): void | string => {
for (let i = 0; i < components.length; i++) {
const component = components[i].trim()
if (component.length === 0) return `the component #${i + 1} is empty.`
if (component.length > 32)
return `the component '${component}' must have 32 characters or less.`
if (component.length > 64)
return `the component '${component}' must have 64 characters or less.`
}
}