MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / firstStringLiteral

Function firstStringLiteral

scripts/experimental/swiftui-preview.mjs:1082–1085  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

1080}
1081
1082function firstStringLiteral(text) {
1083 const match = text.match(/"((?:\\"|[^"])*)"/);
1084 return match ? match[1].replace(/\\"/g, '"') : null;
1085}
1086
1087function skipWhitespace(source, index) {
1088 while (/\s/.test(source[index] ?? "")) {

Callers 1

extractPreviewsFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected