We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 983fb34 commit 6d7610fCopy full SHA for 6d7610f
Sources/D2Handlers/Message/Handler/CommandHandler.swift
@@ -38,7 +38,7 @@ private struct RunnablePipe: AsyncRunnable {
38
// The first group matches the command name,
39
// the second matches the iteration count and
40
// the third the arguments (the rest of the message content)
41
-nonisolated(unsafe) private let commandPattern = #/(?<name>\w+)(?:\^(?<iterations>\d+))?(?:\s+(?<args>[\s\S]*))?/#
+nonisolated(unsafe) private let commandPattern = #/(?<name>[\w+\-*\/%]+)(?:\^(?<iterations>\d+))?(?:\s+(?<args>[\s\S]*))?/#
42
43
/// Handles (possibly piped or chained) command invocations.
44
public class CommandHandler: MessageHandler {
0 commit comments