Skip to content

Commit b81acda

Browse files
committed
Note regex.new requires a full pattern
1 parent c8af7da commit b81acda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Runtime Environment/Regex.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The Regex module is available via `require "pluto:regex"` and provides [Soup's f
66
### `regex.new`
77
Parses a pattern and creates an instance for it.
88
#### Parameters
9-
1. The regex to be *compiled*.
9+
1. The regex to be *compiled*. Note that this must be a full pattern with a start and end delimiter (commonly `/`). Flags may optionally be present after the end delimiter.
1010
#### Returns
1111
A pattern instance.
1212

0 commit comments

Comments
 (0)