BufReadPlus token 'partial' should be a vec #12

Closed
opened 2015-07-09 01:55:18 +12:00 by mikedilger · 3 comments
mikedilger commented 2015-07-09 01:55:18 +12:00 (Migrated from github.com)

For example, a token '---boundary' might be preceded with more hyphens in which case multiple partial offsets could indicate the token. And '--' at the end of a buffer might be followed by '--boundary' in the next buffer in which case the 2nd hyphen was the partial (but our code only checked one partial possibility).

For example, a token '---boundary' might be preceded with more hyphens in which case multiple partial offsets could indicate the token. And '--' at the end of a buffer might be followed by '--boundary' in the next buffer in which case the 2nd hyphen was the partial (but our code only checked one partial possibility).
mikedilger commented 2015-07-09 02:45:34 +12:00 (Migrated from github.com)

Makes sense to fix this along with #11.

Makes sense to fix this along with #11.
mikedilger commented 2015-07-09 05:06:39 +12:00 (Migrated from github.com)

Test cases:
Token=barbarian
Case1: barbar|ian123 output '123'
Case2: barbar|barian output 'bar'

Test cases: Token=barbarian Case1: barbar|ian123 output '123' Case2: barbar|barian output 'bar'
mikedilger commented 2015-07-09 16:31:26 +12:00 (Migrated from github.com)

fixed in b1cd8cff54

fixed in b1cd8cff54a144b07771bf244d711095f7f0bbd3
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mikedilger/formdata#12
No description provided.