Skip to content
Snippets Groups Projects
Commit 16d12015 authored by Iori Ichinose's avatar Iori Ichinose :speech_balloon:
Browse files

fix for negative numbers group

parent e9c5dc4f
No related branches found
No related tags found
No related merge requests found
......@@ -61,12 +61,12 @@ class Command:
commands: dict[re.Pattern, Callable[[re.Match], str]] = {
re.compile(r'rand (^(\-|\+)?\d+) (^(\-|\+)?\d+)'): Command.rand,
re.compile(r'rand ([\-|\+]?\d+) ([\-|\+]?\d+)'): Command.rand,
re.compile(r'choice (.*)'): Command.choice,
re.compile(r'repeat (.*?) (\d+)'): Command.repeat,
re.compile(r'concat (.*)'): Command.concat,
re.compile(r'shuffle (.*)'): Command.shuffle,
re.compile(r'range (^(\-|\+)?\d+) (^(\-|\+)?\d+)'): Command.crange,
re.compile(r'range ((\-|\+)?\d+) ((\-|\+)?\d+)'): Command.crange,
re.compile(r'drop (\d+) (.*)'): Command.drop,
re.compile(r'(.{1,}?) *== *(.{1,}?) *\? *(.{1,}?) *: *(.{1,})'): Command.condition,
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment