sensor alerts: fix regex
sensor alerts: fix regex: a task in smol-software-harbor (Harbor dataset). The LINE regular expression in src/alerts.js only matches whole positive temperatures, so readings like temp=-1.5C or temp=24.25C are dropped and frost alerts never fire. Fix the regex so it accepts an optional minus sign…
The task
The `LINE` regular expression in `src/alerts.js` only matches whole positive temperatures, so readings like `temp=-1.5C` or `temp=24.25C` are dropped and frost alerts never fire. Fix the regex so it accepts an optional minus sign and an optional decimal part. Run `node --test test/*.test.js`.
Part of efederici/smol-software-harbor.