MCPcopy
hub / github.com/resend/react-email / S

Function S

packages/react-email/src/components/code-block/prism.ts:2088–2109  ·  view source on GitHub ↗
(e, t)

Source from the content-addressed store, hash-verified

2086 ),
2087 b = a(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [c, h]);
2088 function S(e, t) {
2089 return {
2090 interpolation: {
2091 pattern: r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source, [e]),
2092 lookbehind: !0,
2093 inside: {
2094 "format-string": {
2095 pattern: r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source, [t, h]),
2096 lookbehind: !0,
2097 inside: { punctuation: /^:/ },
2098 },
2099 punctuation: /^\{|\}$/,
2100 expression: {
2101 pattern: /[\s\S]+/,
2102 alias: "language-csharp",
2103 inside: n.languages.csharp,
2104 },
2105 },
2106 },
2107 string: /[\s\S]+/,
2108 };
2109 }
2110 n.languages.insertBefore("csharp", "string", {
2111 "interpolation-string": [
2112 {

Callers 1

prism.tsFile · 0.70

Calls 1

rFunction · 0.85

Tested by

no test coverage detected