Fix bug.
This commit is contained in:
parent
42b59eb65e
commit
82585681eb
|
|
@ -798,7 +798,7 @@ class Admin::PersonalPluginFieldsController < OrbitMemberController
|
||||||
match_count = parse_content.match(/^ *\* *\d+/m)
|
match_count = parse_content.match(/^ *\* *\d+/m)
|
||||||
match_count = match_count ? match_count[0] : nil
|
match_count = match_count ? match_count[0] : nil
|
||||||
has_exist_condition = parse_content.split("\n")[0].match(/if[ ]+\w+/).present?
|
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
|
if has_exist_condition && exist_condition.nil? #if this block is for other variables, then not proccessing
|
||||||
@parse_again_mode = false
|
@parse_again_mode = false
|
||||||
result
|
result
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue