From 438f7ce79298aaf3a64faad3e5af87c7d77e2573 Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 23 Feb 2021 16:53:40 +0800 Subject: [PATCH] fix error --- app/controllers/admin/asks_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/asks_controller.rb b/app/controllers/admin/asks_controller.rb index eb031dd..2e863a3 100644 --- a/app/controllers/admin/asks_controller.rb +++ b/app/controllers/admin/asks_controller.rb @@ -156,7 +156,7 @@ class Admin::AsksController < OrbitAdminController redirect_to "/#{locale}/admin/asks/category_setting" end def process_format_text(text,custom_fields) - customs = text.scan(//m).uniq + customs = text.scan(//m).uniq if customs.length != 0 custom_exist_nums = [] custom_exists = text.scan(/{custom\d+}/)