Skip to content

Commit 6acc174

Browse files
authored
clarify treatment of whitespace in extended regexes (#13160)
1 parent cc9e986 commit 6acc174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/regex.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ defmodule Regex do
8484
each line; use `\A` and `\z` to match the end or beginning of the string
8585
8686
* `:extended` (x) - whitespace characters are ignored except when escaped
87-
and allow `#` to delimit comments
87+
or within `[..]`, and allow `#` to delimit comments
8888
8989
* `:firstline` (f) - forces the unanchored pattern to match before or at the
9090
first newline, though the matched text may continue over the newline

0 commit comments

Comments
 (0)