Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device ID Regex will not match new IDs that have 5 digits after the last hyphen #2

Open
jasonshaev opened this issue Oct 20, 2021 · 0 comments

Comments

@jasonshaev
Copy link

jasonshaev commented Oct 20, 2021

This regex will match PTS-MOTN-AAAA but not PTS-MOTN-AAAAI, for example, because it is strictly expecting 4 digits after the last hyphen. However, Esper is now issuing IDs with 5 digits after the hyphen.

I suggest updating the example to:
^[a-zA-Z0-9]{3,4}-[a-zA-Z0-9]{3,4}-[a-zA-Z0-9]{4,5}$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant