mirror of
https://github.com/mue/mue.git
synced 2026-07-20 15:34:10 +02:00
fix: various modal fixes and improvements
Co-authored-by: Alex Sparkes <turbomarshmello@gmail.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user