This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch sbp
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/sbp by this push:
     new 5d6a978e Additionally detect source files by stem infix
5d6a978e is described below

commit 5d6a978e37229d257d7b46eb58e863f79ee1f21c
Author: Sean B. Palmer <[email protected]>
AuthorDate: Sun Mar 8 20:27:26 2026 +0000

    Additionally detect source files by stem infix
---
 atr/classify.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/atr/classify.py b/atr/classify.py
index 0f73100f..3b4b83d3 100644
--- a/atr/classify.py
+++ b/atr/classify.py
@@ -23,7 +23,7 @@ from typing import Final
 
 import atr.analysis as analysis
 
-_SOURCE_STEM: Final[re.Pattern[str]] = 
re.compile(r"[-_](source-release|sources|source|src)$")
+_SOURCE_STEM: Final[re.Pattern[str]] = 
re.compile(r"[-_](source-release|sources|source|src)(?=[-_]|$)")
 
 
 class FileType(enum.Enum):


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to