0👍
The regex mailto:([^\?]*)
matches mailto:
and then everything that isn’t ?
.
Assuming you’re just trying to capture all mailto
URLs (in <a>
tags), you could update your regex to capture everything but the closing quote ("
or '
) of the HTML attribute:
const websiteEmailRegex = 'mailto:([^\"\']+)';
- [Vuejs]-How to make <v-otp-input> field to hide in vuejs?
- [Vuejs]-DOM does not update when element changes (VUE)
Source:stackexchange.com