mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-11-25 19:43:29 +01:00
The credit-card candidate regex greedily took up to 19 digits across spaces and dashes, so a card number followed by more digits (a CVV, an expiry month) was checked together with them and failed Luhn. Match the whole run of digit groups and check each contiguous span of groups that holds 13-19 digits.