MCPcopy Index your code
hub / github.com/agent0ai/agent-zero / compileEventPattern

Function compileEventPattern

webui/js/websocket.js:123–126  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

121}
122
123function compileEventPattern(value) {
124 const escaped = value.replace(/[|\\{}()[\]^$+?.]/g, "\\$&");
125 return new RegExp(`^${escaped.replaceAll("*", ".*")}$`);
126}
127
128/**
129 * Generate a correlation identifier using UUIDv4 semantics.

Callers 1

onMethod · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected