diff --git a/src/components/dialogs/TheMacroPrompt.vue b/src/components/dialogs/TheMacroPrompt.vue index d89a94328..ba8f2b571 100644 --- a/src/components/dialogs/TheMacroPrompt.vue +++ b/src/components/dialogs/TheMacroPrompt.vue @@ -62,7 +62,7 @@ export default class TheMacroPrompt extends Mixins(BaseMixin) { private currentPrompt: ServerStateEventPrompt[] = [] // regex that extracts the type and message, omitting the wrapping double quotes of the message (if any) private promptMessageExp = - /^\/\/ action:prompt_(?[^\s]+) *(?:(?['"])(?.*)\k|(?.*))\s*$/ + /^\/\/ action:prompt_(?[^\s]+) *(?.*)$/ get events() { return this.$store.state.server.events @@ -95,7 +95,7 @@ export default class TheMacroPrompt extends Mixins(BaseMixin) { break } - const message = (match?.groups?.msg1 || match?.groups?.msg2 || '').trim() + const message = (match?.groups?.msg || '').trim() // prepend the event to prompt events found in this chunk promptEvents.unshift({