title: Angular 4 validator working differently when deployed to server
body: <p>I have a validator which works fine when running locally :</p>
  
  <p>`export function currencyAmountValidator(control: AbstractControl)
  {</p>
  
  <p>var passed = /^(\£)?([1-9]{1}[0-9]{0,2})(\,\d{3})<em>(.\d{2})?$|^(\$)?([1-9]{1}[0-9]{0,2})(\d{3})</em>(.\d{2})?$|^(0)?(.\d{2})?$|^(\$0)?(.\d{2})?$|^(\$.)(\d{2})?$/gm.test(control.value);</p>
  
  <p>return passed ? null : { invalid: true };
  }
  `</p>
  
  <p>It allows entries like : 100, £100, £123.45, £1,300</p>
  
  <p>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?</p>