gbaptista/wp-git-embed — pull request #5 by mindcrime-ilab (2014-03-12 23:06:31+00:00)
Title: Handle multiple 'src' occurences

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.