Repository navigation
String cleaner > tweak short trip head-sign & stop name... - #28
Conversation
commented
Mar 26, 2026
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refines the string cleaning utility by introducing more nuanced control over string shortening for trip headsigns and stop names, ensuring that shorter strings are not unnecessarily truncated. It also enhances the robustness of several regular expression patterns used for cleaning, leading to more accurate and consistent text processing. The changes aim to improve the readability and conciseness of displayed transit information. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
left a comment
There was a problem hiding this comment.
Code Review
This pull request introduces maximum length constants for trip headsigns and stop names, using them to conditionally apply shortening logic. It also adjusts the application of fixMcXCase for English strings to always apply, not just when shortening. Additionally, it modifies several regex patterns in CleanUtilsExt.kt. A potential regression was identified in the makeALL_FACE_A_REGEX change, as it might prevent matching phrases like "face à" when they appear after a word.
No description provided.