Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Don't suggest invalid commands

  • Loading branch information...
commit 040aa04e4d1fe49174a115be1d2c11348e1ac5b7 1 parent 6007421
Jonty Wareing authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 examples/command_runner.py
4 examples/command_runner.py
@@ -21,9 +21,9 @@
21 21 for file in os.listdir(path):
22 22
23 23 # Build the index, in case we never find a command
24   - m = re.match('^[a-z0-9]+', file)
  24 + m = re.match('^([a-z0-9]+)\.[a-z]+$', file)
25 25 if m:
26   - commands.append(m.group(0))
  26 + commands.append(m.group(1))
27 27
28 28 if re.match('^%s\.[a-z]+$' % command, file):
29 29 found = True

0 comments on commit 040aa04

Please sign in to comment.
Something went wrong with that request. Please try again.