PostHog / posthog

🦔 PostHog provides open-source web & product analytics, session recording, feature flagging and A/B testing that you can self-host. Get started - free.
https://posthog.com
Other
22.33k stars 1.35k forks source link

fix(hog): regex with nulls #26422

Closed mariusandra closed 5 days ago

mariusandra commented 5 days ago

Problem

A user reported that effectively null =~ 'anything' will equal 'null' =~ 'anything'

Changes

Better null handling for regex functions, both match and the comparison objects.

How did you test this code?

Made a new nulls.hog test.

github-actions[bot] commented 5 days ago

Size Change: 0 B

Total Size: 1.16 MB

ℹ️ View Unchanged | Filename | Size | | :--- | :---: | | `frontend/dist/toolbar.js` | 1.16 MB |

compressed-size-action