angular/angular.js — pull request #9888 by caitp (2014-11-03 19:39:39+00:00)
Title: fix(ngPattern): match behaviour of native HTML pattern attribute

From https://html.spec.whatwg.org/multipage/forms.html#attr-input-pattern

> The compiled pattern regular expression, when matched against a string, must have its start
anchored to the start of the string and its end anchored to the end of the string.

/CC @matsko please review

Closes #9881