(task: AcronTask)
| 260 | return `${mainPrefix}acron`; |
| 261 | } |
| 262 | function buildCopyCommand(task: AcronTask): string { |
| 263 | const cmd = buildCopy(task); |
| 264 | return cmd?.includes("\n") ? `<pre>${cmd}</pre>` : `<code>${cmd}</code>`; |
| 265 | } |
| 266 | |
| 267 | function tryParseRegex(input: string): RegExp { |
| 268 | const trimmed = input.trim(); |