alco / alco/hashids-elixir

Error when use salt and non-alphabet custom string

Open
#17 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Elixir
Stars
282
Forks
16
PR merge metrics
No merged PRs in 30d

Description

```elixir
custom_string = "123456789абвгґдеєжзиіїйклмнопрстуфцчшщьюяАБВГҐДЕЄЖЗИІЇЙКЛМНОПРСТУФЦЧШЩЬЮЯ"
hashids = Hashids.new(salt: "ЦжЧєДОЄ8ук", alphabet: custom_string)

** (MatchError) no match of right hand side value: {[], []}
(hashids 2.1.0) iex:58: Hashids.Helpers.swap/3
(hashids 2.1.0) iex:54: Hashids.Helpers.loop/6
(hashids 2.1.0) iex:261: Hashids.calculate_seps/4
(hashids 2.1.0) iex:90: Hashids.new/1
iex:53: (file)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.