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

Better defined validity of standardized PMIs? #48

Closed
marcoscaceres opened this issue Aug 30, 2017 · 2 comments
Closed

Better defined validity of standardized PMIs? #48

marcoscaceres opened this issue Aug 30, 2017 · 2 comments

Comments

@marcoscaceres
Copy link
Member

marcoscaceres commented Aug 30, 2017

As per spec, the following PMIs are all valid:

    "0",
    "021213213",
    "-valid-",
    "-valid-123",
    "--------",

I think what we want is:

stdpmi = part *("-" part)
part = 1loweralpha *(DIGIT / loweralpha)
loweralpha =  %x61-7A
@marcoscaceres marcoscaceres changed the title Better define validity of standardized PMIs? Better defined validity of standardized PMIs? Aug 30, 2017
@rsolomakhin
Copy link

This regex ok?

[a-z]+[a-z0-9]*(-[a-z0-9]+)*

@marcoscaceres
Copy link
Member Author

Yeah, that looks correct.

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

2 participants