Skip to content

Strings cleaner > fix stop name length (default zoom) - #32

Merged
mmathieum merged 1 commit into
masterfrom
mm/strings_cleaner_stop_name_longer
Apr 22, 2026
Merged

mmathieum merged 1 commit into
masterfrom
mm/strings_cleaner_stop_name_longer

Conversation

@mmathieum

Copy link
Copy Markdown
Member

Also, apply clean bounds only it still too long

Also, apply clean bounds only it still too long
@ghost ghost self-assigned this Apr 22, 2026
@ghost
ghost marked this pull request as ready for review April 22, 2026 18:49

ghost 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 StringsCleaner utility by introducing a shortMaxLength parameter to the cleanString function and increasing the STOP_NAME_SHORT_MAX_LENGTH from 17 to 27. These changes allow for more precise control over string shortening logic. Feedback suggests improving consistency across cleaning methods by applying CleanUtils.cleanSlashes to route long names and stop names if they still exceed their maximum length after the initial cleaning process, matching the existing behavior for trip headsigns.

Comment thread src/main/java/org/mtransit/commons/StringsCleaner.kt
Comment thread src/main/java/org/mtransit/commons/StringsCleaner.kt
@ghost
ghost merged commit f120d18 into master Apr 22, 2026
@ghost
ghost deleted the mm/strings_cleaner_stop_name_longer branch April 22, 2026 19:16
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