Might be out of scope for this PR but I think html5 pattern is implicitely anchored. If this does not get fixed in this PR, please create a new issue to track this.