(triggerCharacters: string[])
| 258 | } |
| 259 | |
| 260 | function buildDebouncePattern(triggerCharacters: string[]): RegExp { |
| 261 | const escapedWithoutAt = triggerCharacters.filter((character) => character !== "@").map(escapeCharacterClass); |
| 262 | return new RegExp(`(?:^|[ \\t])(?:@(?:"[^"]*|[^\\s]*)|[${escapedWithoutAt.join("")}][^\\s]*)$`); |
| 263 | } |
| 264 | |
| 265 | export class Editor implements Component, Focusable { |
| 266 | private state: EditorState = { |
no outgoing calls
no test coverage detected