core/forms/validation-pattern.ts
Properties |
Methods |
|
Static Readonly rules |
Type : object
|
Default value : {
deviceId: {
pattern: /^[^\s/]*$/
},
domain: {
pattern: /^[a-z]+[a-z0-9-]*[a-z0-9]+\.{1}.+$/
},
groupName: {
maxLength: 254
},
hostname: {
pattern:
/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$/
},
ip: {
pattern:
/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/
},
opcuaBrowsePath: {
pattern: /^(opc.tcp|http|https):\/\/[^ "]+$/
},
password: {
pattern: /^[a-zA-Z0-9`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]{8,32}$/
},
tenantId: {
pattern: /^[a-z]+[a-z0-9-]*[a-z0-9]+$/
},
user: {
pattern: /^[^\\/\s$:+]*$/
},
urlSegment: {
pattern: /^(([.]{1,2})|([/])+|(([/]*)([.]{1,2})([/]*))|((.*)([/]|[ ]+)(.*))|(\s+))$/
},
loginAlias: {
pattern: /^[^\\/$:+]*$/
},
noDots: {
pattern: /^[^.]*$/
},
httpUrl: {
pattern: /^(https?):\/\/.*$/
},
colonedHexNumber: {
pattern: /^[0-9a-fA-F:]+$/
},
integer: {
pattern: /^-?\d+$/
}
}
|
Static get | ||||||
get(key: string)
|
||||||
Parameters :
Returns :
ValidationRules
|