diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-04 13:21:46 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-04 13:21:46 -0500 |
| commit | 821c7c1ded6bef400dcfda9aec27832f116ce369 (patch) | |
| tree | 00a81233e3de23213dc80f9b273d2b4569dbea4a /wttrin.el | |
| parent | f526cf641181e9cdb533a1f8a278de1fad49ca25 (diff) | |
| download | emacs-wttrin-821c7c1ded6bef400dcfda9aec27832f116ce369.tar.gz emacs-wttrin-821c7c1ded6bef400dcfda9aec27832f116ce369.zip | |
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.
Diffstat (limited to 'wttrin.el')
| -rw-r--r-- | wttrin.el | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. |
