(content)
| 63 | } |
| 64 | |
| 65 | function extractSlashCommand(content) { |
| 66 | const text = flattenUserContent(content).trim(); |
| 67 | if (!text) return ''; |
| 68 | const commandTagMatch = text.match(/<command-name>\s*(\/[^\s<]+)\s*<\/command-name>/i); |
| 69 | if (commandTagMatch) return commandTagMatch[1].trim().toLowerCase(); |
| 70 | const inlineMatch = text.match(/^(\/\S+)/); |
| 71 | return inlineMatch ? inlineMatch[1].trim().toLowerCase() : ''; |
| 72 | } |
| 73 | |
| 74 | function isUserInterruptEvent(content) { |
| 75 | const text = flattenUserContent(content) |
no test coverage detected