Fix bug.
This commit is contained in:
1 parent
42b59eb65e
commit
82585681eb
1 file changed
+1
-1
@@ -798,7 +798,7 @@ class Admin::PersonalPluginFieldsController < OrbitMemberController
|
||||
match_count = parse_content.match(/^ *\* *\d+/m)
|
||||
match_count = match_count ? match_count[0] : nil
|
||||
has_exist_condition = parse_content.split("\n")[0].match(/if[ ]+\w+/).present?
|
||||
exist_condition = parse_content.split("\n")[0].match(/if[ ]+#{::Regexp.escape(k)}(?=\.| |$)/)
|
||||
exist_condition = parse_content.split("\n")[0].match(/if[ ]+#{::Regexp.escape(k)}(?=\.| |$|\r)/)
|
||||
if has_exist_condition && exist_condition.nil? #if this block is for other variables, then not proccessing
|
||||
@parse_again_mode = false
|
||||
result
|
||||
|
||||
Reference in new issue
Block a user