MCPcopy Create free account
hub / github.com/d1ll0n/stack-packer / strip

Function strip

src/code-gen/word-packer.ts:23–25  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

21// Code created with the help of Stack Overflow answer by AymKdn
22// https://stackoverflow.com/a/59094308
23function strip(str: string) {
24 return str.replace(/\/\*[\s\S]*?\*\/|\/\/.*/g,'').trim();
25}
26
27export function generateCoderLibrary(struct: ProcessedStruct, context: FileContext) {
28 if (struct.dynamic) {

Callers 1

generateSolFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected