Greetings, I have encountered an issue with a regular expression in my environment.ts file.
export const environment = {
passwordPolicy: "^(?!.*(.)\1\1)(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}.*$"
};
Unfortunately, when running ng test, I am faced with the following error:
ERROR in ./src/environments/environment.ts
Module parse failed: Octal literal in strict mode (74:30)
You may need an appropriate loader to handle this file type.
| passwordPolicy: "^(?!.*(.)\1\1)(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}.*$"
| };
|
@ ./src/app/shared/services/config.service.ts 22:20-64
@ ./src/app/shared/services/users.service.ts
@ ./src/app/shared/services/index.ts
@ ./src/app/users/users.component.spec.ts
@ ./src \.spec\.ts$
@ ./src/test.ts
If anyone has any insights or solutions, your assistance would be greatly appreciated. Thank you.