mirror of
https://github.com/crate-ci/typos.git
synced 2025-01-23 15:09:08 -05:00
fix(parser): Ensure we get full base64
We greedily matched separators, including ones that might be part of base64. This impacts the length calculation, so we want as much as possible.
This commit is contained in:
parent
6915d85c0b
commit
b673b81146
1 changed files with 1 additions and 1 deletions
|
@ -180,13 +180,13 @@ mod parser {
|
|||
<T as nom::InputIter>::Item: AsChar + Copy,
|
||||
{
|
||||
take_many0(alt((
|
||||
sep1,
|
||||
terminated(uuid_literal, sep1),
|
||||
terminated(hash_literal, sep1),
|
||||
terminated(hex_literal, sep1),
|
||||
terminated(dec_literal, sep1),
|
||||
terminated(base64_literal, sep1),
|
||||
terminated(email_literal, sep1),
|
||||
sep1,
|
||||
)))(input)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue