mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 08:35:47 +08:00
lint
This commit is contained in:
parent
4b8ff7a057
commit
ddcca1d5cc
@ -160,8 +160,7 @@ class ImportScripts::XenForo < ImportScripts::Base
|
||||
if ! s.valid_encoding?
|
||||
s = s.encode("UTF-16be", invalid: :replace, replace: "?").encode('UTF-8')
|
||||
end
|
||||
#End Fix
|
||||
|
||||
|
||||
# Work around it for now:
|
||||
s.gsub!(/\[http(s)?:\/\/(www\.)?/, '[')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user