Fix Regex pattern and name change
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
-- name = "Public IP Search"
|
-- name = "Public IP"
|
||||||
-- description = "Shows your public IP"
|
-- description = "Shows your public IP in the search bar"
|
||||||
-- data_source = "ipify.org"
|
-- data_source = "ipify.org"
|
||||||
-- type = "search"
|
-- type = "search"
|
||||||
-- author = "Sriram SV"
|
-- author = "Sriram SV"
|
||||||
@@ -11,7 +11,7 @@ local red = md_colors.red_500
|
|||||||
|
|
||||||
local ip = ""
|
local ip = ""
|
||||||
function on_search(input)
|
function on_search(input)
|
||||||
if input:lower():find(string.lower("ip")) then
|
if input:lower():find(string.lower("^ip$")) then
|
||||||
get_ip()
|
get_ip()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user