gnodet commented on PR #22991:
URL: https://github.com/apache/camel/pull/22991#issuecomment-4386896848
_Claude Code on behalf of Guillaume Nodet_
True, but the code is still wrong regardless — it uses `lastIndexOf(':')` to
strip the scheme prefix, which means it keeps only the part after the **last**
colon rather than stripping the **first** part (the scheme). For example,
`classpath:my-route.yaml:10` would produce `10` instead of `my-route.yaml:10`.
The fix changes to `indexOf(':')` with a check that the part before the
colon is all letters (a valid URI scheme), so it correctly strips only the
scheme prefix.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]