Skip to content

Conversation

@vmenge
Copy link
Collaborator

@vmenge vmenge commented Jan 5, 2026

makes wifi qr parsing slightly more permissive, as long as we can extract needed information

@vmenge vmenge requested a review from a team as a code owner January 5, 2026 19:30
Copy link
Member

@andronat andronat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines -109 to -110
let (input, _) = tag(";")(input)?;
let (input, _) = eof(input)?;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure we want to allow arbitrary garbage at the end? Perhaps we only do opt(tag(";")) and keep eof in place?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the reasoning here was that the parser takes only the first item anyway, so the garbage will not be processed. But I agree with you here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, reasoning is what @pophilpo said
as long as we can get the info we need it doesn't matter if whatever comes after is garbage

are there any bad cases you can think of that we will run into without opt(tag(";")) plus eof?

@vmenge vmenge merged commit d2f147f into main Jan 7, 2026
24 checks passed
@vmenge vmenge deleted the vm/permissive-qr-parsing branch January 7, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants