Magic parser - handling escapes and empty strings by 616c · Pull Request #72 · dflib/jjava

added 2 commits

July 18, 2025 12:29
im magic parameters, an escaped backslash '\\'
should be replaced by a single backslash, not by
a two backslashes
in magics parameters, a quoted string should be
able to be empty: "", so the check for current's length
greater than 0 was removed
Test for
- escaped backslash
- quoted empty string

@616c

@andrus andrus changed the title Magic parser fixes Magic parser - handling escapes and empty strings

Jul 19, 2025

andrus added a commit that referenced this pull request

Jul 19, 2025