Fix the URL checker for basic auth
Fixed the URL checker to allow for links with basic authentication. I need to be able to deploy to nodes with basic auth. The current URL checker regex doesn't allow for the following formate: https://username:password@nodehost.com Fixed the URL checker to allow for basic auth.
This commit is contained in:
Родитель
3c54b5b54f
Коммит
2ecc7f82a5
|
@ -186,7 +186,7 @@ export class Constants {
|
|||
hasDigits: /(?=.*\d)/g,
|
||||
infuraProjectname: /^([a-zA-Z]|\d|\s|[-_:]){3,}$/g,
|
||||
isLowerCase: /^[a-z0-9_\-!@$^&()+=?\/<>|[\]{}:.\\~ #`*"'%;,]+$/g,
|
||||
isUrl: /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=]+$/igm,
|
||||
isUrl: /^(?:http(s)?:\/\/)?[\w:@.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=]+$/igm,
|
||||
lowerCaseLetter: /(?=.*[a-z]).*/g,
|
||||
// tslint:disable-next-line: max-line-length
|
||||
port: /^([1-9]|[1-8][0-9]|9[0-9]|[1-8][0-9]{2}|9[0-8][0-9]|99[0-9]|[1-8][0-9]{3}|9[0-8][0-9]{2}|99[0-8][0-9]|999[0-9]|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$/,
|
||||
|
|
Загрузка…
Ссылка в новой задаче