Skip to content

Commit

Permalink
Merge pull request #6 from pendexgabo/master
Browse files Browse the repository at this point in the history
Replace tilde with hyphen for core generator
  • Loading branch information
hidehalo authored Sep 25, 2019
2 parents 3f4f439 + e975837 commit 2a30679
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
>
> **Small.** Only 179 bytes (minified and gzipped). No dependencies. It uses Size Limit to control size.
>
> **Compact.** It uses more symbols than UUID (A-Za-z0-9_~) and has the same number of unique options in just 21 symbols instead of 36.
> **Compact.** It uses more symbols than UUID (A-Za-z0-9_\-) and has the same number of unique options in just 21 symbols instead of 36.
Thanks awesome [ai](https://github.com/ai) and his [nanoid](https://github.com/ai/nanoid), this package is a copy in PHP!
If you like nanoid and you want to use it in PHP, try me :D
Expand All @@ -25,7 +25,7 @@ $composer require hidehalo/nanoid-php

### Normal

> The main module uses URL-friendly symbols (A-Za-z0-9_~) and returns an ID with 21 characters (to have the same collisions probability as UUID v4).
> The main module uses URL-friendly symbols (A-Za-z0-9_\-) and returns an ID with 21 characters (to have the same collisions probability as UUID v4).
``` php
use Hidehalo\Nanoid\Client;
Expand Down
2 changes: 1 addition & 1 deletion src/CoreInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
interface CoreInterface
{
const SAFE_SYMBOLS = '_~0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
const SAFE_SYMBOLS = '_-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
const MASKS = [15, 31, 63, 127, 255];

/**
Expand Down

0 comments on commit 2a30679

Please sign in to comment.