Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when matching literal '*' using match_glob #22867

Open
rodabt opened this issue Nov 15, 2024 · 0 comments
Open

Error when matching literal '*' using match_glob #22867

rodabt opened this issue Nov 15, 2024 · 0 comments
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.

Comments

@rodabt
Copy link
Contributor

rodabt commented Nov 15, 2024

Describe the bug

When trying to match a literal '*' using string.match_glob() it returns false

Reproduction 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

>>> '10?x'.match_glob('*[?]x')
true
>>> '10*x'.match_glob('*[*]x')
false
>>>

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.)

V full version: V 0.4.8 3939737.561efd1
OS: linux, Debian GNU/Linux 11 (bullseye) (WSL 2)
Processor: 8 cpus, 64bit, little endian, Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz

getwd: /home/rabt/devel/qprime
vexe: /home/rabt/devel/new_v/v
vexe mtime: 2024-11-15 20:50:08

vroot: OK, value: /home/rabt/devel/new_v
VMODULES: OK, value: /home/rabt/.vmodules
VTMP: OK, value: /tmp/v_1000

Git version: git version 2.30.2
Git vroot status: weekly.2024.46-29-g561efd14
.git/config present: true

CC version: cc (Debian 10.2.1-6) 10.2.1 20210110
emcc version: N/A
thirdparty/tcc status: thirdparty-linux-amd64 0134e9b9

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.

@rodabt rodabt added the Bug This tag is applied to issues which reports bugs. label Nov 15, 2024
@felipensp felipensp added Status: Confirmed This bug has been confirmed to be valid by a contributor. Unit: vlib Bugs/feature requests, that are related to the vlib. labels Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants