From b81acda8c325a3094a2e740102f87c2381b399aa Mon Sep 17 00:00:00 2001 From: Sainan Date: Thu, 31 Oct 2024 05:05:53 +0100 Subject: [PATCH] Note regex.new requires a full pattern --- docs/Runtime Environment/Regex.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Runtime Environment/Regex.md b/docs/Runtime Environment/Regex.md index f6e80fe0..f216ad05 100644 --- a/docs/Runtime Environment/Regex.md +++ b/docs/Runtime Environment/Regex.md @@ -6,7 +6,7 @@ The Regex module is available via `require "pluto:regex"` and provides [Soup's f ### `regex.new` Parses a pattern and creates an instance for it. #### Parameters -1. The regex to be *compiled*. +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. #### Returns A pattern instance.