summaryrefslogtreecommitdiff
path: root/app/models/packages/go/module.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/packages/go/module.rb')
-rw-r--r--app/models/packages/go/module.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/packages/go/module.rb b/app/models/packages/go/module.rb
index 00d51c21881..a029437c82d 100644
--- a/app/models/packages/go/module.rb
+++ b/app/models/packages/go/module.rb
@@ -33,7 +33,7 @@ module Packages
end
def path_valid?(major)
- m = /\/v(\d+)$/i.match(@name)
+ m = %r{/v(\d+)$}i.match(@name)
case major
when 0, 1