Skip to content

Commit

Permalink
Simplify default regular expression (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienfalque authored and florianeckerstorfer committed Oct 24, 2018
1 parent b89029f commit edb835c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Slugify.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*/
class Slugify implements SlugifyInterface
{
const LOWERCASE_NUMBERS_DASHES = '/([^A-Za-z0-9]|-)+/';
const LOWERCASE_NUMBERS_DASHES = '/[^A-Za-z0-9]+/';

/**
* @var array<string,string>
Expand Down

0 comments on commit edb835c

Please sign in to comment.