Skip to content

Conversation

mindcrime-ilab
Copy link

replace only the first occurrence of 'src' in the reference to the source file. In the existing implementation I experienced the problem that if there where multiple directories named 'src' part of the path all of them replaced with 'raw' which results in a wrong reference to the source file. For example

https://bitbucket.org/0x0me/synplayer/src/.../src/main/cpp/audiostationclient.h?at=develop

becomes

https://bitbucket.org/0x0me/synplayer/raw/.../raw/main/cpp/audiostationclient.h?at=develop

.

This patch limits the replacement to the first occurrence assuring a working link afterwards.

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