Skip to content

Commit

Permalink
Merge pull request #105 from mooore-digital/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
poespas authored Nov 7, 2022
2 parents 328912f + 16b1184 commit f248c2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.10.8] - 2022-11-07
### Fixed
- Small fix for href search pattern

## [0.10.7] - 2022-10-28
### Fixed
- Missing flex container on btn group
Expand Down
2 changes: 1 addition & 1 deletion Processors/AfterHtml/FixHrefUrls.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function process(string $html, $siteId): string
$prefix = ltrim($prefix, '/');

$html = preg_replace_callback(
'<a.?href="('.str_replace('/', '\\/', preg_quote($base_url)).'.*?)".*?>',
'<a.*?href="('.str_replace('/', '\\/', preg_quote($base_url)).'.*?)".*?>',
function ($matches) use ($base_url, $prefix) {
return str_replace($base_url, '/' . $prefix . '/', $matches[0]);
},
Expand Down

0 comments on commit f248c2c

Please sign in to comment.