MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / trimLastLine

Function trimLastLine

plugins/grok-theme/index.mjs:1417–1422  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

1415 .replace(/>/g, '>')
1416 .replace(/\\_/g, '_')
1417 .replace(/\\{/g, '{')
1418 .replace(/\\}/g, '}')
1419 .replace(/``.*?``|(?<!\\)`/g, (match) =>
1420 match.startsWith('``') ? match : ''
1421 )
1422 .replace(/`` /g, '')
1423 .replace(/ ``/g, '')
1424 .replace(/\\`/g, '`')
1425 .replace(/\\\*/g, '*')

Callers 1

codeBlockFunction · 0.85

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected