Skip to content

Commit

Permalink
feat(stdlib): match
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Nov 19, 2024
1 parent 96282f4 commit 28cc7d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/std/text.ab
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ pub fun match_regex(source: Text, search: Text, extended: Bool = false, match: T
/// Checks if an array value (with regular expression) is in the text.
pub fun contains_any_regex(text: Text, terms: [Text], match: Text = "g"): Bool {
for term in terms {
if contains_regex(text, term, false, match) {
if match_regex(text, term, false, match) {
return true
}
}
Expand Down

0 comments on commit 28cc7d1

Please sign in to comment.