Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

Commit

Permalink
Merge pull request #7 from natebrunette/bugfix/fix-issue-with-strip-f…
Browse files Browse the repository at this point in the history
…ragment

Fixing bug with stripping fragments
  • Loading branch information
Matt A committed Aug 9, 2017
2 parents ed9627b + 2fd4ff9 commit 10fca95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions.php
Expand Up @@ -51,7 +51,7 @@ function strip_fragment($ref)
{
$fragment = Uri\parse($ref)['fragment'];

return $fragment ? str_replace($fragment, '', $ref) : $ref;
return $fragment ? str_replace('#'.$fragment, '#', $ref) : $ref;
}

/**
Expand Down

0 comments on commit 10fca95

Please sign in to comment.