(asm1: string, asm2: string)
| 455 | }; |
| 456 | |
| 457 | const 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 | }; |