fix(ngPattern): allow modifiers on inline ng-pattern

Add support for regex modifiers on inline ng-pattern. `ng-pattern="/abc/i"`

Closes #1437