silver_search not producing result if using regex (-G) and pattern search switch (-g) options
ciscohack opened this issue · comments
ciscohack commented
Hello Experts,
When i use ag options -g and -G switch to search some keyword. I have noticed silver search failed to produce result. I am running ag on macOS 12.3 and my ag version also latest one (ag version 2.2.0)
ag -G "^hap$" sw_techsupportinfo
STDIN
if i used below search string it highlight complete file instead of single word
ag -g "hap" sw_techsupportinfo
now if i used normal ag for same keyword search everything works fine
ag "hap" sw_techsupportinfo
STDIN
105: Service: snmpd hap reset
last search method show correct match and highlight..
I feel there is some issue with ag tool