Application of regex ([^a-zA-Z]|^)(text)(?=([^a-zA-Z]|$))
crashes
#782
Labels
bug
Something isn't working
([^a-zA-Z]|^)(text)(?=([^a-zA-Z]|$))
crashes
#782
Description
The code below that is supposed to replace matches of a regex crashes with
Thread 1: EXC_BREAKPOINT (code=1, subcode=0x2676b2ff8)
(also with e.g. just"(text)"
as input).Reproduction
Stack dump
Expected behavior
Replacing the match accordingly (printing " text ").
Environment
swift-driver version: 1.115 Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
Target: arm64-apple-macosx14.0
Additional information
No response
The text was updated successfully, but these errors were encountered: