You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fails, because we clear earlier word boundary cache entries when we calculate later ones.
// This will first find word boundaries up til the middle before failing,
// then it will find word boundaries til late in the string, then fail,
// and finally should succeed on a word boundary cached from the first
// attempt.
letinput="first second third fourth"letregex=tryRegex(#".*second\bX|.*third\bX|.*first\b"#)XCTAssertTrue(input.contains(regex))