This commit is contained in:
2025-11-30 08:59:38 +01:00
parent 0963910572
commit 5b2069c560
32 changed files with 60 additions and 59 deletions

View File

@@ -23,7 +23,7 @@ pub fn escape_regex_chars(s string) string {
// This function does not add implicit ^ and $ anchors, allowing for substring matches.
fn wildcard_to_regex(wildcard_pattern string) string {
mut regex_pattern := ''
for i, r in wildcard_pattern.runes() {
for _, r in wildcard_pattern.runes() {
match r {
`*` {
regex_pattern += '.*'