From 821c7c1ded6bef400dcfda9aec27832f116ce369 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sat, 4 Apr 2026 13:21:46 -0500 Subject: fix: validate-weather-data corrupts match data string-match modifies global match data as a side effect. A predicate should not do this. Use string-match-p instead. --- wttrin.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wttrin.el') diff --git a/wttrin.el b/wttrin.el index 0af5e50..d95f0c2 100644 --- a/wttrin.el +++ b/wttrin.el @@ -350,7 +350,7 @@ Returns the path to the saved file." (defun wttrin--validate-weather-data (raw-string) "Check if RAW-STRING has valid weather data. Return t if valid, nil if missing or contains errors." - (not (or (null raw-string) (string-match "ERROR" raw-string)))) + (not (or (null raw-string) (string-match-p "ERROR" raw-string)))) (defun wttrin--process-weather-content (raw-string) "Process RAW-STRING: apply ANSI filtering and remove verbose lines. -- cgit v1.2.3