Fix logScanner fails to parse pointer file containing unicode chars #5655
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.
Git will quote paths using Unicode characters in git log, but the fileHeaderRegex does not account for optional quotes in the log.
This change fixes the regex to account for quotes due to Unicode characters and improves the tests.
Due to this bug, git lfs prune might accidentally prune recent, unpushed, or stashed files that contain unicode character if there is more than one changed file in the commit.
One might see a git log looking like this, for example (note the quotation marks).
Note: This is rather critical because if the file "Source Assets/Audio/Alltagsger\303\244usche - Kamera - Blitzlicht.mp3" would be unpushed or stashed,
prune --force
would delete the file as well