Skip to content

Commit

Permalink
refactor: allow both http and https
Browse files Browse the repository at this point in the history
  • Loading branch information
cpvalente committed Jan 6, 2025
1 parent b67e4ac commit 9043b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/client/src/common/utils/regex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

export const isOnlyNumbers = /^\d+$/;
export const isIPAddress = /^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$/;
export const startsWithHttp = /^http:\/\//;
export const startsWithHttp = /^https?:\/\//;
export const startsWithSlash = /^\//;
export const isAlphanumeric = /^[a-z0-9]+$/i;
export const isASCII = /^[ -~]+$/; //https://catonmat.net/my-favorite-regex
Expand Down

0 comments on commit 9043b3c

Please sign in to comment.