fix: [AH-859] Update URL validaiton regex to support aws urls (#3230)

* fix: [AH-859] Update URL validaiton regex to support aws urls
BT-10437
Shivanand Sonnad 2025-01-06 12:35:37 +00:00 committed by Harness
parent 09a6e983ae
commit bb5ffe1cae
1 changed files with 1 additions and 2 deletions

View File

@ -27,8 +27,7 @@ export const DEFAULT_TIME_FORMAT = 'hh:mm a'
export const DEFAULT_DATE_TIME_FORMAT = `${DEFAULT_DATE_FORMAT} ${DEFAULT_TIME_FORMAT}`
export const REPO_KEY_REGEX = /^[a-z0-9]+(?:[._-][a-z0-9]+)*$/
export const URL_REGEX =
/((https):\/\/)(www.)?[a-z0-9]+(\.[a-z]{2,}){1,3}(#?\/?[a-zA-Z0-9#]+)*\/?(\?[a-zA-Z0-9-_]+=[a-zA-Z0-9-%]+&?)?$/
export const URL_REGEX = /^https:\/\/([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,6}(:[0-9]{1,5})?(\/[^\s]*)?$/
export enum PreferenceScope {
USER = 'USER',