##// END OF EJS Templates
check for both $LA and LA() in history crawling
Ville M. Vainio -
Show More
@@ -128,7 +128,7 b' class LastArgFinder:'
128 ip = ipapi.get()
128 ip = ipapi.get()
129 for cmd in reversed(ip.IP.input_hist_raw):
129 for cmd in reversed(ip.IP.input_hist_raw):
130 parts = cmd.strip().split()
130 parts = cmd.strip().split()
131 if len(parts) < 2 or parts[-1] == '$LA':
131 if len(parts) < 2 or parts[-1] in ['$LA', 'LA()']:
132 continue
132 continue
133 return parts[-1]
133 return parts[-1]
134 return ""
134 return ""
General Comments 0
You need to be logged in to leave comments. Login now