-
Notifications
You must be signed in to change notification settings - Fork 62
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
Zero-padding not supported in compiled output #29
Comments
Okay, I dug into this a bit more... It seems that fill-range is the culprit, and 'to-regex-range' is not actually used. The undocumented assert.deepEqual( braces(['a/{01..20}/b', 'a/{1..5}/b'], { strictZeros: true } ), [ 'a/(0[1-9]|1[0-9]|20)/b', 'a/([1-5])/b' ] ); My recommended solution here is to make Thoughts? |
Thank you, I had a hard time remembering and was about to look. Yes, I agree with that. However, I think we should do a major bump because it will result in a breaking change. Would you like to do a PR? FWIW I have a couple of other fixes that I'll be publishing as a patch before I bump the major. |
I will make a PR for this in the next few days, making |
This should be resolved by #29. Another change needed to be made in fill-range to ensure that padding was applied. |
It appears that zero-padded numeric sequences are advertised, but not properly supported.
Will follow up with PR with failing test cases.
Please advice whether the fix for this is in this module, or upstream in to-regex-range.
As always, thanks for you hard work on this module and so many others.
The text was updated successfully, but these errors were encountered: