Skip to content

Commit

Permalink
fix: [AH-859] Update URL validaiton regex to support aws urls (#3230)
Browse files Browse the repository at this point in the history
* fix: [AH-859] Update URL validaiton regex to support aws urls
  • Loading branch information
shivanand-harness authored and Harness committed Jan 6, 2025
1 parent 09a6e98 commit bb5ffe1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/src/ar/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit bb5ffe1

Please sign in to comment.