Skip to content

Commit

Permalink
Merge 518a7d4 into be9df6d
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowhand authored Apr 26, 2019
2 parents be9df6d + 518a7d4 commit 589ecbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Str.php
Original file line number Diff line number Diff line change
Expand Up @@ -1936,7 +1936,7 @@ public function slugify(string $replacement = '-', string $language = 'en'): Str
}
$this->s = \str_replace('@', $replacement, $this->s);
$quotedReplacement = \preg_quote($replacement, '/');
$pattern = "/[^a-zA-Z\d\s-_$quotedReplacement]/u";
$pattern = "/[^-_a-zA-Z\d\s$quotedReplacement]/u";
$this->s = (string) \preg_replace($pattern, '', $this->s);
$this->s = \strtolower($this->s);
$this->s = (string) \preg_replace("/^['\s']+|['\s']+\$/", '', $this->s);
Expand Down

0 comments on commit 589ecbe

Please sign in to comment.