mirror of
https://github.com/42wim/matterbridge
synced 2024-11-11 01:10:38 +00:00
7 lines
244 B
Plaintext
7 lines
244 B
Plaintext
text := import("text")
|
|
|
|
if outProtocol == "mumble" {
|
|
urlRE := text.re_compile(`(?is)((http|https):\/\/)?([a-z0-9-]+\.)?[a-z0-9-]+(\.[a-z]{2,6}){1,3}(\/[a-z0-9.,_\/~#&=;%+?-]*)?`)
|
|
msgText = urlRE.replace(msgText,`<a href="$0">$0</a>`)
|
|
}
|