Closed TornaxO7 closed 2 years ago
Here, you use whitespace().repeated()
but the whitespace
parser already accepts any number of whitespace characters, so whitespace().repeated()
can accept no inputs, spinning round indefinitely. I recommend removing the .repeated()
.
Thank you :)
@zesterer I'm sorry that I'm pinging again ._. but I've got a (little) other problem if I remove repeated()
from whitespace()
. Because according to the rfc-2047 there can be any amount of whitespaces between two encoded words, which should be ignored. Here is an examle from the rfc:
(=?ISO-8859-1?Q?a?= =?ISO-8859-1?Q?b?=) (ab)
Even multiple SPACEs between 'encoded-word's are ignored
for the purpose of display.
Do you have an idea for this?
Does this not work as-is? whitespace()
will consume any amount of whitespace characters.
Oh god... I just found out that it was another issue... sorry! Yes you're right, it consumes any amount of whitespace :)
Disclaimer
Hello, it's me again! I'm sorry that I'm often asking for help but I hope that it's fine... as I already said, you are always free to say that you don't want to get any questions like that again.
The problem
I'm getting the following error message:
(formatted for better readability)
if I run
cargo test
on my fork.If you remember, I've already asked a similar question. I was trying to find the issue but I can't find a fix.
Where to start
This function returns the parser for the program.
What have you tried?
but that doesn't work
encoded- word-parser
but I couldn't see anything which I could fix there.I'd be happy if anyone can help me here :)