aboutsummaryrefslogtreecommitdiffstats
path: root/build/scripts/java_pack_to_file.py
diff options
context:
space:
mode:
authorsay <say@yandex-team.com>2025-03-11 09:49:02 +0300
committersay <say@yandex-team.com>2025-03-11 10:27:12 +0300
commit60fafe0be6f4cf683c6f4b15cb872c228a428333 (patch)
tree3a44c3e6743ae95976633d37c5e6a255cf62e8dc /build/scripts/java_pack_to_file.py
parent644a530157339cc98ab98a78170416a03fe69966 (diff)
downloadydb-60fafe0be6f4cf683c6f4b15cb872c228a428333.tar.gz
Fix package name processing
commit_hash:4b3bf4cca786391b36a288c9f7d8e1dde8174180
Diffstat (limited to 'build/scripts/java_pack_to_file.py')
-rw-r--r--build/scripts/java_pack_to_file.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/scripts/java_pack_to_file.py b/build/scripts/java_pack_to_file.py
index c8ab7c311b..1397db0e14 100644
--- a/build/scripts/java_pack_to_file.py
+++ b/build/scripts/java_pack_to_file.py
@@ -23,7 +23,7 @@ def get_package_name(filename):
else:
match = JAVA_PACKAGE_REGEX.search(content)
if match:
- return match.group(1).replace('\n\t ', '').replace('.', '/')
+ return re.sub(r'[\s]+', '', match.group(1)).replace('.', '/')
return ''