Fix various rubocop warnings.

This commit is contained in:
evazion
2021-09-27 00:44:41 -05:00
parent a2a4ab887d
commit 79fdfa86ae
39 changed files with 149 additions and 154 deletions

View File

@@ -238,7 +238,7 @@ class PostVersion < ApplicationRecord
end
def truncated_source
source.gsub(/^http:\/\//, "").sub(/\/.+/, "")
source.gsub(%r{^http://}, "").sub(%r{/.+}, "")
end
def undo!