So I'm attempting to make html forms that use the input html attribute 'pattern' however when I do so through Vue.js components, its creating very strange behavior. Here is a fiddle to demonstrate.
Vue.component('test', {
template:`<input type="text" required pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,16}"
title="Must contain at least one number and one uppercase and lowercase letter, and be between 8 and 16 characters."/>`
})
Breakdown of the patterns regex here (regex101 example).
Now for the life of me, I cannot figure out why the normal version validates properly, but the Vue version does not.