diff --git a/ci/promote.sh b/ci/promote.sh index b2dc06d..47395da 100755 --- a/ci/promote.sh +++ b/ci/promote.sh @@ -616,13 +616,13 @@ for c in components: continue m = pat_a.search(line) if m: # 形态 A:同行 - old_tag, hit_idx = m.group(2), idx + old_tag, hit_idx = m.group(2).strip("\"'"), idx lines[idx] = pat_a.sub(lambda _m: _m.group(1) + ":" + c["acrTag"], line) break for j in range(idx + 1, min(idx + 4, len(lines))): # 形态 B:邻近 tag: 字段 mb = pat_b.match(lines[j]) if mb: - old_tag, hit_idx = mb.group(2), j + old_tag, hit_idx = mb.group(2).strip("\"'"), j lines[j] = mb.group(1) + c["acrTag"] + "\n" break if hit_idx is not None: