diff options
Diffstat (limited to 'libphobos/src/std/regex/internal/parser.d')
-rw-r--r-- | libphobos/src/std/regex/internal/parser.d | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libphobos/src/std/regex/internal/parser.d b/libphobos/src/std/regex/internal/parser.d index 41ca6872a7a..448bb99a9a1 100644 --- a/libphobos/src/std/regex/internal/parser.d +++ b/libphobos/src/std/regex/internal/parser.d @@ -841,7 +841,7 @@ if (isForwardRange!R && is(ElementType!R : dchar)) switch (front) { case '*', '?', '+', '|', '{', '}': - error("'*', '+', '?', '{', '}' not allowed in atom"); + return error("'*', '+', '?', '{', '}' not allowed in atom"); case '.': if (re_flags & RegexOption.singleline) g.put(Bytecode(IR.Any, 0)); |