I tried to implement a pattern validator with a built in validator in angular. I wanted to use this patter: /\S+/g but it didn't work because angular overwrites my pattern in its function You can see it here 
Why do they put the ^ and a $ at the beginning and the end of the string? Should I use a custom validator instead the built in? Is it a bug or working as expected?
Here is a plunkrhttp://plnkr.co/edit/OHrUitqUnhIYxsraby7J
/gin the ng-pattern regex. Could you share a fiddle with your validator?".*\\S.*"?