From 83a3a9c8bf05fd5b3aa433345ad88ac7ab4c8696 Mon Sep 17 00:00:00 2001 From: Oleg Smelov <79197369+oleg-vinted@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:23:53 +0300 Subject: [PATCH] Disallow `-` in names --- linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."""