This commit is contained in:
BoHung Chiu 2023-07-27 16:41:27 +08:00
parent 42b59eb65e
commit 82585681eb
1 changed files with 1 additions and 1 deletions

View File

@ -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