Error when matching literal '*' using match_glob #22867
Labels
Bug
This tag is applied to issues which reports bugs.
Status: Confirmed
This bug has been confirmed to be valid by a contributor.
Unit: vlib
Bugs/feature requests, that are related to the vlib.
Describe the bug
When trying to match a literal '*' using
string.match_glob()
it returns falseReproduction Steps
assert '10*x'.match_glob('*[*]x') == true
Expected Behavior
'10x'.match_glob('[*]x') should be true (according to docs)
Current Behavior
From the REPL
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.8 561efd1, timestamp: 2024-11-15 14:32:27 +0200
Environment details (OS name and version, etc.)
Huly®: V_0.6-21310
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: