MCPcopy Index your code
hub / github.com/braziljs/eloquente-javascript / maybeSplitInlineCode

Function maybeSplitInlineCode

src/render_html.mjs:71–74  ·  view source on GitHub ↗
(html)

Source from the content-addressed store, hash-verified

69}
70
71function maybeSplitInlineCode(html) {
72 if (html.length <= 16) return html
73 return html.replace(/[.\/](?!\/)/g, `$&<wbr${close}>`)
74}
75
76const seenIDs = Object.create(null)
77function anchor(token) {

Callers 1

code_inlineFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected