Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Commit 7dd870f

Browse files
committed
use \A & \Z for APK_META (is_meta() is unchanged as it uses .fullmatch())
1 parent 4e51fe0 commit 7dd870f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apksigcopier/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
JAR_MANIFEST = "META-INF/MANIFEST.MF"
9393
JAR_SBF_EXTS = ("RSA", "DSA", "EC")
9494

95-
APK_META = re.compile(r"^META-INF/([0-9A-Za-z_-]+\.(SF|RSA|DSA|EC)|MANIFEST\.MF)$")
95+
APK_META = re.compile(r"\AMETA-INF/([0-9A-Za-z_-]+\.(SF|RSA|DSA|EC)|MANIFEST\.MF)\Z")
9696
META_EXT: Tuple[str, ...] = ("SF", "|".join(JAR_SBF_EXTS), "MF")
9797
COPY_EXCLUDE: Tuple[str, ...] = (JAR_MANIFEST,)
9898
DATETIMEZERO: DateTime = (1980, 0, 0, 0, 0, 0)

0 commit comments

Comments
 (0)