scripts/apps/users/services/UsersService.ts
Function UsersService
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function UsersService(api, $q, notify) {
var usersService: any = {};
usersService.usernamePattern = /^[A-Za-z0-9_.'-]+$/;
usersService.phonePattern = /^(?:(?:0?[1-9][0-9]{8})|(?:(?:\+|00)[1-9][0-9]{9,11}))$/;