Adding datanet link trigger
This commit is contained in:
parent
cb6308fbaf
commit
3f12bc5885
1
CREDITS.md
Normal file
1
CREDITS.md
Normal file
@ -0,0 +1 @@
|
||||
Datanet links by Fishy and Kbug
|
5
src/triggers/datanet-links/datanet-link.lua
Normal file
5
src/triggers/datanet-links/datanet-link.lua
Normal 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
|
12
src/triggers/datanet-links/triggers.json
Normal file
12
src/triggers/datanet-links/triggers.json
Normal file
@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"name": "datanet-link",
|
||||
"matchall": true,
|
||||
"patterns": [
|
||||
{
|
||||
"pattern": "(?:(\"\\w+.*?\\w+\"|';\\w+.*?\\w+'|\\w+?)?):(\\/(?:(\\w|\\d|_)+?\\/?)+)",
|
||||
"type": "regex"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user