Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow different "generate" and "use" chars #138

Open
hlascelles opened this issue Sep 29, 2020 · 1 comment
Open

Allow different "generate" and "use" chars #138

hlascelles opened this issue Sep 29, 2020 · 1 comment

Comments

@hlascelles
Copy link

We would like to generate thousands of alphanumeric links like this:

foo.com/1Gk82
foo.com/MB8d3
...

However sometimes we also would like to make a "permashortlink"

foo.com/flash_sale

As you can see flash_sale has an underscore. When it goes through extract_token it comes out as flash and isn't found.

I understand why this is (to stop a foo.com/1234. lookup looking for 1234. with a fullstop, right?). Would you be open to a change to have extra config to have both "chars used to generate randomly" and "chars to look for in a path"?

@craigmcnamara
Copy link
Collaborator

Send a pull request if you'd like to see this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants