Skip to content

Commit 274e8bf

Browse files
committed
check for hyphens too
1 parent 5c8007c commit 274e8bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SomethingNeedDoing/NativeMacro/MacroParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public IMacroCommand ParseLine(string text)
7474
/// <returns>The command parse info, or null if the text cannot be parsed.</returns>
7575
private CommandParseInfo? ParseCommandStructure(string text)
7676
{
77-
var match = Regex.Match(text, @"^/(\w+)(?:\s+(.*))?$");
77+
var match = Regex.Match(text, @"^/([\w-]+)(?:\s+(.*))?$");
7878
if (!match.Success)
7979
return null;
8080

0 commit comments

Comments
 (0)