question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use numbers only in alphabet

See original GitHub issue

I use

hashids = Hashids(salt="hello", min_length=6, alphabet='0123456789')

But “Alphabet must contain at least 16 unique characters.” execption raised.

Why Alphabet must contain at least 16?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
bodgerbarnettcommented, Oct 27, 2021

Apologies for the long silence here.

Yes, the limitation exists for compatibility with JS. I don’t have any strong opinions on that though, and if there’s interest I’d be happy to accept a PR that removes the limitation.

Thanks!

Would I be right in saying that this would simply be a case of removing the raise exception on line 194? Or is there more to it than that?

2reactions
davidaureliocommented, Jul 14, 2020

Apologies for the long silence here.

Yes, the limitation exists for compatibility with JS. I don’t have any strong opinions on that though, and if there’s interest I’d be happy to accept a PR that removes the limitation.

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Only alphabets, numbers and Period to be allowed in textbox
I have 2 asp.net text box in which I want to check that only alphabets, numbers and period character can be used.
Read more >
javascript - Allow numbers only after some alphabet?
I need to make sure that a certain field only takes numbers as after some default alphabetic characters Like XXX-XX-1234. Here XXX-XX- are ......
Read more >
JavaScript: HTML Form - checking for numbers and letters
Javascript function to check if a field input contains letters and numbers only.
Read more >
password should have alphabets & numbers only example ...
password should have alphabets & numbers only example meaning in Hindi बिल्कुल शुरुआत से घर बैठे इंग्लिश ...
Read more >
Convert number to letters and letters to numbers by ... - YouTube
This video explains, how to convert capital and small alphabets into numbers and numbers to alphabets.We can use Code Function and Char ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found