JSON > + [keep/exclude]_routes.route_short_name_regex #NRT#79
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces regex-based route filtering by adding a route_short_name_regex configuration option to RouteConfig. This regex is lazily compiled and used in both keepRoutes and excludeRoutes to match route short names. The review feedback suggests ensuring the regex string is not blank before compiling to avoid unexpected matching behavior, and recommends adding unit tests to verify the new filtering logic.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
…ort_name_regex` #NRT mtransitapps/parser#79
…e_short_name_regex` #NRT mtransitapps/parser#79
* `JSON` config... * Sync code from 'parser': `JSON` > + `[keep/exclude]_routes`.`route_short_name_regex` #NRT mtransitapps/parser#79
- commons-android: GTFS-RT > Trip filtering > allow ignore `direction_id` when `trip_id` is provided mtransitapps/commons-android#172 - commons-android: Status > `hasData` != `!noData` ('no data' means loaded w/o data) mtransitapps/commons-android#173 - parser: `JSON` > + `[keep/exclude]_routes`.`route_short_name_regex` #NRT mtransitapps/parser#79
- commons-java: String utils > "and" -> "&" always (tests) - commons-java: String utils > "and" -> "&" always - parser: `JSON` > + `[keep/exclude]_routes`.`route_short_name_regex` #NRT mtransitapps/parser#79
- commons-java: String utils > "and" -> "&" always (tests) - commons-java: String utils > "and" -> "&" always - parser: `JSON` > + `[keep/exclude]_routes`.`route_short_name_regex` #NRT mtransitapps/parser#79
- commons-android: GTFS-RT > Trip filtering > allow ignore `direction_id` when `trip_id` is provided mtransitapps/commons-android#172 - commons-java: String utils > "and" -> "&" always (tests) - commons-java: String utils > "and" -> "&" always - parser: `JSON` > + `[keep/exclude]_routes`.`route_short_name_regex` #NRT mtransitapps/parser#79
…er': - commons: Gradle 9.4+ > enable parallel sync - commons-android: GTFS-RT > Trip filtering > allow ignore `direction_id` when `trip_id` is provided mtransitapps/commons-android#172 - commons-android: Status > `hasData` != `!noData` ('no data' means loaded w/o data) mtransitapps/commons-android#173 - commons-java: String utils > "and" -> "&" always (tests) - commons-java: String utils > "and" -> "&" always - parser: `JSON` > + `[keep/exclude]_routes`.`route_short_name_regex` #NRT mtransitapps/parser#79
…parser': - commons: Build(deps): Bump com.google.ads.mediation:facebook from 6.21.0.3 to 6.21.0.4 in the ads group across 1 directory mtransitapps/commons#813 - commons: Build(deps): Bump com.google.firebase:firebase-bom from 34.15.0 to 34.16.0 in the gms group across 1 directory mtransitapps/commons#812 - commons: Build(deps): Bump com.google.devtools.ksp from 2.3.9 to 2.3.10 in the kotlin-ksp-compose group across 1 directory mtransitapps/commons#811 - commons: Gradle 9.4+ > enable parallel sync - commons-android: GTFS-RT > Trip filtering > allow ignore `direction_id` when `trip_id` is provided mtransitapps/commons-android#172 - commons-android: Status > `hasData` != `!noData` ('no data' means loaded w/o data) mtransitapps/commons-android#173 - commons-java: String utils > "and" -> "&" always (tests) - commons-java: String utils > "and" -> "&" always - parser: `JSON` > + `[keep/exclude]_routes`.`route_short_name_regex` #NRT mtransitapps/parser#79
…parser': - commons: Build(deps): Bump com.google.ads.mediation:facebook from 6.21.0.3 to 6.21.0.4 in the ads group across 1 directory mtransitapps/commons#813 - commons: Build(deps): Bump com.google.firebase:firebase-bom from 34.15.0 to 34.16.0 in the gms group across 1 directory mtransitapps/commons#812 - commons: Build(deps): Bump com.google.devtools.ksp from 2.3.9 to 2.3.10 in the kotlin-ksp-compose group across 1 directory mtransitapps/commons#811 - commons: Gradle 9.4+ > enable parallel sync - commons-android: GTFS-RT > Trip filtering > allow ignore `direction_id` when `trip_id` is provided mtransitapps/commons-android#172 - commons-android: Status > `hasData` != `!noData` ('no data' means loaded w/o data) mtransitapps/commons-android#173 - commons-java: String utils > "and" -> "&" always (tests) - commons-java: String utils > "and" -> "&" always - parser: `JSON` > + `[keep/exclude]_routes`.`route_short_name_regex` #NRT mtransitapps/parser#79
No description provided.