MCPcopy Create free account
hub / github.com/CashScript/cashscript / toRegExp

Function toRegExp

packages/cashscript/src/utils.ts:283–285  ·  view source on GitHub ↗
(reasons: string[])

Source from the content-addressed store, hash-verified

281}
282
283export function toRegExp(reasons: string[]): RegExp {
284 return new RegExp(reasons.join('|').replace(/\(/g, '\\(').replace(/\)/g, '\\)'));
285}
286
287export function scriptToAddress(
288 script: Script, network: string, addressType: AddressType, tokenSupport: boolean,

Callers 1

failedFinalVerifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected