fix error
This commit is contained in:
parent
0cf33d44ae
commit
438f7ce792
|
@ -156,7 +156,7 @@ class Admin::AsksController < OrbitAdminController
|
||||||
redirect_to "/#{locale}/admin/asks/category_setting"
|
redirect_to "/#{locale}/admin/asks/category_setting"
|
||||||
end
|
end
|
||||||
def process_format_text(text,custom_fields)
|
def process_format_text(text,custom_fields)
|
||||||
customs = text.scan(/<tr.*{custom}.*<\/tr>/m).uniq
|
customs = text.scan(/<tr(?:(?!<tr).)+\{custom\}(?:(?!<tr).)+<\/tr>/m).uniq
|
||||||
if customs.length != 0
|
if customs.length != 0
|
||||||
custom_exist_nums = []
|
custom_exist_nums = []
|
||||||
custom_exists = text.scan(/{custom\d+}/)
|
custom_exists = text.scan(/{custom\d+}/)
|
||||||
|
|
Loading…
Reference in New Issue