alco / alco/hashids-elixir

Error when use salt and non-alphabet custom string

オープン
#17 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Elixir
スター
282
フォーク
16
PR マージ指標
30日以内にマージされた PR はありません

説明

```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)
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。