mirror of
https://gitee.com/openharmony/third_party_rust_regex
synced 2025-04-16 17:40:18 +00:00

When doing literal extraction, a non-empty concatenation should always be cut when a `^` (for prefixes) or a `$` (for suffixes) is seen. If a counted repetition is used, e.g., `${2}`, then the cut detection fails. We add in a special case to handle it. Fixes #321