fix: various modal fixes and improvements

Co-authored-by: Alex Sparkes <turbomarshmello@gmail.com>
This commit is contained in:
David Ralph
2022-07-15 22:00:55 +01:00
parent 9648b75f52
commit fc3340e374
11 changed files with 48 additions and 22 deletions

View File

@@ -9,7 +9,7 @@ function showReminder() {
export function urlParser(input) {
const urlPattern =
/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()!@:%_+.~#?&//=]*)/;
return input.replace(urlPattern, '<br/><a href="$&" target="_blank">$&</a>');
return input.replace(urlPattern, '<br/><a class="link" href="$&" target="_blank">$&</a>');
}
export function install(type, input, sideload) {