Skip to content

Update \d\d\d\d\d\d to \d+ #8

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

Merged
merged 1 commit into from
Aug 4, 2021

Conversation

CatherineF-dev
Copy link
Collaborator

@CatherineF-dev CatherineF-dev commented Aug 4, 2021

When filenum >= 1000000, fileNameRegexp couldn't match that filename.

fmt.Println(fmt.Sprintf( "%s.diskqueue.%06d.dat", "abc", 100000000)) = abc.diskqueue.100000000.dat

@CatherineF-dev CatherineF-dev requested a review from kev1n80 August 4, 2021 15:53
Copy link
Owner

@kev1n80 kev1n80 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch and brilliant solution!

@CatherineF-dev CatherineF-dev merged commit bb13b3d into kev1n80:master Aug 4, 2021
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

Successfully merging this pull request may close these issues.

2 participants