Skip to content

Commit

Permalink
Remove unnecessary trim; see: #163
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswsinc committed Oct 21, 2015
1 parent 7ea1352 commit 5cdd847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/includes/closures/Shared/CachePathUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@

foreach ($uri_patterns as $_key => &$_uri_pattern) {
if (($_uri_pattern = trim($_uri_pattern, '^$'))) {
$_cache_path = $_self->buildCachePath($host_url.'/'.trim($_uri_pattern, '^/$'), '', '', $flags);
$_cache_path = $_self->buildCachePath($host_url.'/'.trim($_uri_pattern, '/'), '', '', $flags);
$_relative_cache_path = preg_replace('/^'.preg_quote($host_cache_path, '/').'(?:\/|$)/i', '', $_cache_path);
$_uri_pattern = $self->wdRegexToActualRegexFrag($_relative_cache_path);
}
Expand Down

0 comments on commit 5cdd847

Please sign in to comment.