I have a validator which works fine when running locally :
`export function currencyAmountValidator(control: AbstractControl) {
var passed = /^(\£)?([1-9]{1}[0-9]{0,2})(\,\d{3})(.\d{2})?$|^(\$)?([1-9]{1}[0-9]{0,2})(\d{3})(.\d{2})?$|^(0)?(.\d{2})?$|^(\$0)?(.\d{2})?$|^(\$.)(\d{2})?$/gm.test(control.value);
return passed ? null : { invalid: true }; } `
It allows entries like : 100, £100, £123.45, £1,300
However when I deploy to the server it doesn't allow the £ symbol at the start, but does allow a $. Why does it work differently when running locally and on server?
£100
and£123.45
, please check it on regex101 – Iftifar Taz