diff --git a/wp-git-embed.php b/wp-git-embed.php index f88fbcd..60234a6 100644 --- a/wp-git-embed.php +++ b/wp-git-embed.php @@ -82,7 +82,7 @@ private static function raw($code) { // Bitbucket - https://bitbucket.org/ elseif(preg_match('/:\/\/bitbucket.org/', $file)) { $source = preg_replace('/^\[git:|\]$/', '', $file); - $raw = str_replace('/src/', '/raw/', $source); + $raw = implode('/raw/',explode('/src/',$source,2)); $service = 'bitbucket'; } else {