FIX: verify_bundle.py false-positive Windows - TOC Python literal double-escape backslash (app\\static -> app//static), normalize 2 buoc
This commit is contained in:
@@ -40,8 +40,10 @@ def main() -> int:
|
||||
with open(toc, "r", encoding="utf-8", errors="replace") as f:
|
||||
raw = f.read()
|
||||
# TOC Windows co the dung backslash (app\\static) — normalize het ve forward
|
||||
# slash de kiem tra khong bi false positive.
|
||||
text = raw.replace("\\", "/")
|
||||
# slash de kiem tra khong bi false positive. TOC la Python literal nen
|
||||
# backslash bi DOUBLE-escape ('app\\\\static') — thay 2 lan (\\\\ truoc,
|
||||
# roi \\) de ca 2 dang deu ve '/'.
|
||||
text = raw.replace("\\\\", "/").replace("\\", "/")
|
||||
missing = []
|
||||
for req in REQUIRED:
|
||||
# Tim theo prefix thuc su trong TOC (vd 'app/static/js/...' hoac
|
||||
|
||||
Reference in New Issue
Block a user