mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
DEV: Enable Style/SingleLineMethods
and Style/Semicolon
in Rubocop (#6717)
This commit is contained in:
parent
56948896ff
commit
9248ad1905
30 changed files with 171 additions and 72 deletions
|
@ -172,7 +172,7 @@ class ImportScripts::Nabble < ImportScripts::Base
|
|||
txt.gsub! /\<quote author="(.*?)"\>/, '[quote="\1"]'
|
||||
txt.gsub! /\<\/quote\>/, '[/quote]'
|
||||
txt.gsub!(/\<raw\>(.*?)\<\/raw\>/m) do |match|
|
||||
c = Regexp.last_match[1].indent(4);
|
||||
c = Regexp.last_match[1].indent(4)
|
||||
"\n#{c}\n"
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue