Adding datanet link trigger

This commit is contained in:
Matt Wagner 2021-06-20 14:13:29 -07:00
parent cb6308fbaf
commit 3f12bc5885
4 changed files with 19 additions and 1 deletions

1
CREDITS.md Normal file
View File

@ -0,0 +1 @@
Datanet links by Fishy and Kbug

2
mfile
View File

@ -1,4 +1,4 @@
{
"package": "lotj-ui",
"version": "v2.0.3"
"version": "v2.0.4"
}

View File

@ -0,0 +1,5 @@
for i = 1, #matches, 4 do
selectString(matches[i], 1)
setUnderline(true)
setLink([[send("datanet ]] .. matches[i] .. [[")]], "Datanet link: " .. matches[i])
end

View File

@ -0,0 +1,12 @@
[
{
"name": "datanet-link",
"matchall": true,
"patterns": [
{
"pattern": "(?:(\"\\w+.*?\\w+\"|';\\w+.*?\\w+'|\\w+?)?):(\\/(?:(\\w|\\d|_)+?\\/?)+)",
"type": "regex"
}
]
}
]