diff --git a/linter.py b/linter.py index e23bdbd..bde4922 100644 --- a/linter.py +++ b/linter.py @@ -33,7 +33,7 @@ class Rubocop(RubyLinter): r'((?P\w+/\w+): )?' r'(?P.+)$' ) - word_re = r'^((@|@@|\$)?[-\w]+[!?]?)' + word_re = r'^((@|@@|\$)?\w+[!?]?)' def cmd(self): """Build command, using STDIN if a file path can be determined."""