From dd7a8b46fa1276235b7b634aeceb1405e4fa584a Mon Sep 17 00:00:00 2001 From: sriramsv Date: Fri, 26 Aug 2022 22:26:15 -0700 Subject: [PATCH] Fix Regex pattern and name change --- community/public-ip-search.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/community/public-ip-search.lua b/community/public-ip-search.lua index e4207a9..5c57821 100644 --- a/community/public-ip-search.lua +++ b/community/public-ip-search.lua @@ -1,5 +1,5 @@ --- name = "Public IP Search" --- description = "Shows your public IP" +-- name = "Public IP" +-- description = "Shows your public IP in the search bar" -- data_source = "ipify.org" -- type = "search" -- author = "Sriram SV" @@ -11,7 +11,7 @@ local red = md_colors.red_500 local ip = "" function on_search(input) - if input:lower():find(string.lower("ip")) then + if input:lower():find(string.lower("^ip$")) then get_ip() end end