Use a non-greedy pattern when capturing modified (#395)#396
Merged
althonos merged 1 commit intoPyFilesystem:masterfrom Sep 30, 2020
Merged
Conversation
Contributor
|
The tests pass, so LGTM. @willmcgugan Slightly off-topic question, but is there a good reason for the inconsistency of having the RE_LINUX using numbered capture-groups but the RE_WINDOWSNT using named capture-groups? |
Member
|
@lurch It's been so long, I'd be guessing. But I reckon I copied those regexes from somewhere. |
Contributor
Author
|
So, anything else needed? I don't seem to have merge rights :) |
Member
|
Sorry. There is a back log. Plan to clear it soon.
On Mon, 18 May 2020 at 17:18, Morten Engelhardt Olsen < ***@***.***> wrote:
So, anything else needed? I don't seem to have merge rights :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#396 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEHLAM3ZRU4EHB3YBWOJR3RSFNWRANCNFSM4NCXBWJA>
.
--
Will McGugan
https://www.willmcgugan.com <http://www.willmcgugan.com>
|
Contributor
Author
|
Hihihi, no problem! |
|
I tripped over this bug recently. I'm applying this patch locally and can confirm that it fixes the problem. |
Member
|
@xoriath sorry to bother after such a long time, could you please update the |
By making this capture pattern non-greedy it will no longer capture until the last AM or PM in a directory listing line.
35cefdd to
50769a3
Compare
Contributor
Author
|
No problem, @althonos , updated the files and rebased to upstream master |
Member
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
By making this capture pattern non-greedy it will no longer
capture until the last AM or PM in a directory listing line.
Type of changes
Checklist
Description
Fixes #395 by using a non-greedy pattern for capturing the modified time from a NT directory listing (similar as is done for Linux)
Updated the WindowsNT test to catch a regression for this in the future.