MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / too_complex

Function too_complex

std/re/src/main/mod.rs:179–181  ·  view source on GitHub ↗

Signals that backtracking degraded, so the author can rewrite the pattern. */

()

Source from the content-addressed store, hash-verified

177
178/* Signals that backtracking degraded, so the author can rewrite the pattern. */
179fn too_complex() -> ReError {
180 ReError::TooComplex(String::from("catastrophic backtracking: O(n^2) time or worse on this input, simplify nested quantifiers"))
181}
182
183/* Reject lookbehind whose width is not fixed, which the engine cannot run. */
184fn validate(node: &Node) -> Result<(), ReError> {

Callers 3

findFunction · 0.85
find_allFunction · 0.85
subFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected