Skip to content

Commit 7287c26

Browse files
committed
fix partial match
1 parent 0e32ffc commit 7287c26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.pdk/pdk/gleaner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def patch_message(old, new, *, verbose=False):
7272
count -= 1
7373
for old_block, new_block in blocks.items():
7474
# flowdas: 변경 후에도 P_INVARIANT 패턴을 유지하지 못한다면 안전하지 않다.
75-
if P_INVARIANT.match(new_block):
75+
if P_INVARIANT.fullmatch(new_block):
7676
print(f"{old_block} --> {new_block}")
7777
new.string = new.string.replace(old_block, new_block)
7878
changed = True

0 commit comments

Comments
 (0)