Match smallest possible substring when matching the version #14

Open
opened 2024-09-13 19:40:57 +02:00 by belka · 0 comments
Owner

With the actual matching it isn't always possible to match some versions like 1.x.y where x is an even number. Because matching a digit will match till the end of the number, odd or even, but x can have multiple digits and only the last one should be even.

If the pattern that can match multiple characters is alredy fullfilled, try to match the next pattern (recursively). And only if the next pattern doesn't match, mark the character as matched with the current pattern.

With the actual matching it isn't always possible to match some versions like 1.x.y where `x` is an even number. Because matching a digit will match till the end of the number, odd or even, but `x` can have multiple digits and only the last one should be even. If the pattern that can match multiple characters is alredy fullfilled, try to match the next pattern (recursively). And only if the next pattern doesn't match, mark the character as matched with the current pattern.
belka added the
Kind
enhancement
label 2024-09-13 19:40:57 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
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: OSS/slackbuilder#14
No description provided.