MCPcopy Create free account
hub / github.com/TanStack/cli / stripSemicolon

Function stripSemicolon

packages/create/scripts/generate-manifest.mjs:202–204  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

200}
201
202function stripSemicolon(code) {
203 return code.replace(/;(\s*$)/, '$1')
204}
205
206function compileTemplate(template) {
207 const regex = /<%([=_#-]?|_)?([\s\S]*?)([-_]?%>)/g

Callers 1

compileTemplateFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected