mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Make import scripts work with frozen strings
This commit is contained in:
@@ -283,7 +283,7 @@ class String
|
||||
def indent(count, char = ' ')
|
||||
gsub(/([^\n]*)(\n|$)/) do |match|
|
||||
last_iteration = ($1 == "" && $2 == "")
|
||||
line = ""
|
||||
line = +""
|
||||
line << (char * count) unless last_iteration
|
||||
line << $1
|
||||
line << $2
|
||||
|
||||
Reference in New Issue
Block a user