(content: string)
| 229 | } |
| 230 | |
| 231 | function stripPromptComments(content: string): string { |
| 232 | return content |
| 233 | .replace(/^\uFEFF/, "") |
| 234 | .replace(/\r\n?/g, "\n") |
| 235 | .replace(HTML_COMMENT_REGEX, "") |
| 236 | .replace(LEGACY_INLINE_COMMENT_LINE_REGEX, "") |
| 237 | } |
| 238 | |
| 239 | function toEditablePromptText(definition: PromptDefinition, rawContent: string): string { |
| 240 | let normalized = stripPromptComments(rawContent).trim() |
no outgoing calls
no test coverage detected