mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 20:00:09 +00:00
{.Glboal} implicit in regex allocator.
This commit is contained in:
@@ -279,6 +279,8 @@ create_iterator :: proc(
|
||||
permanent_allocator := context.allocator,
|
||||
temporary_allocator := context.temp_allocator,
|
||||
) -> (result: Match_Iterator, err: Error) {
|
||||
flags := flags
|
||||
flags += {.Global} // We're iterating over a string, so the next match could start anywhere
|
||||
|
||||
result.haystack = str
|
||||
result.regex = create(pattern, flags, permanent_allocator, temporary_allocator) or_return
|
||||
|
||||
Reference in New Issue
Block a user