84c8c29136
When not in unicode sets mode, '[' within a class is an ordinary character (not the beginning of a nested class). While scanning for capture groups, the flag (/v) was not taken into account. Bug: chromium:1374232 Change-Id: I05b9758bedba25633129b12d4634510031d01544 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3952253 Auto-Submit: Patrick Thier <pthier@chromium.org> Reviewed-by: Victor Gomes <victorgomes@chromium.org> Commit-Queue: Patrick Thier <pthier@chromium.org> Cr-Commit-Position: refs/heads/main@{#83683}
7 lines
237 B
JavaScript
7 lines
237 B
JavaScript
// Copyright 2022 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// '[' within a character class is not special without /v.
|
|
/\1[[]()/
|