Skip to content

Strings cleaner > improvements...#30

Merged
mmathieum merged 2 commits into
masterfrom
mm/strings_clene_plus
Mar 27, 2026
Merged

Strings cleaner > improvements...#30
mmathieum merged 2 commits into
masterfrom
mm/strings_clene_plus

Conversation

@mmathieum

Copy link
Copy Markdown
Member

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the string cleaning logic to ensure that shortening only occurs if a string exceeds a specific length and contains at least one space. These updates were applied to trip headsigns and stop names. However, a bug was identified in the cleanRouteLongName function where the newly calculated makeShorter flag is not actually passed to the cleanString method, effectively leaving the shortening logic disabled for route names.

Comment thread src/main/java/org/mtransit/commons/StringsCleaner.kt Outdated
@mmathieum mmathieum marked this pull request as ready for review March 27, 2026 12:27
@mmathieum mmathieum merged commit c2785ba into master Mar 27, 2026
@mmathieum mmathieum deleted the mm/strings_clene_plus branch March 27, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant