mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-08 19:50:05 +01:00
10 lines
317 B
JavaScript
10 lines
317 B
JavaScript
(function() {
|
|
|
|
'use strict';
|
|
|
|
angular
|
|
.module('harbor.validator')
|
|
.constant('INVALID_CHARS', [",","~","#", "$", "%"])
|
|
.constant('PASSWORD_REGEXP', /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).{7,20}$/)
|
|
.constant('PROJECT_REGEXP', /^[a-z0-9](?:-*[a-z0-9])*(?:[._][a-z0-9](?:-*[a-z0-9])*)*$/);
|
|
})(); |