mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-22 11:52:21 +01:00
7 lines
290 B
TypeScript
7 lines
290 B
TypeScript
// Provides regular expressions to validate user inputs
|
|
export default class ValidationLib {
|
|
static urlRegex = /^(https?:\/\/)(([^.]+)\.)+(.{2,30})(\/.*)*\/?$/;
|
|
static endpointRegex = /^\/?([-._~:?#[\]@!$&'()*+,;=%\w]+\/?)*$/;
|
|
static phoneRegex = /^((00|\+)\d{2,3})?[\d -]{4,14}$/;
|
|
}
|