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

Function mergeAsm

packages/utils/src/script.ts:457–461  ·  view source on GitHub ↗
(asm1: string, asm2: string)

Source from the content-addressed store, hash-verified

455};
456
457const mergeAsm = (asm1: string, asm2: string): string => {
458 // We merge two ASM strings by adding a space between them, and removing any duplicate spaces
459 // or trailing/leading spaces, which might have been introduced due to regex matching / replacements / empty asm strings
460 return `${asm1} ${asm2}`.replace(/\s+/g, ' ').trim();
461};

Callers 1

replaceOpsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected