Skip to content

Commit

Permalink
Trigger recompilation of Sqids module when default blocklist changes
Browse files Browse the repository at this point in the history
  • Loading branch information
g-andrade committed Oct 2, 2023
1 parent 7f6b44b commit c2d0636
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/sqids.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ defmodule Sqids do
# url-safe characters
@default_alphabet "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
@default_min_length 0

@external_resource "blocklist/one_word_per_line.txt"
@default_blocklist_words "blocklist/one_word_per_line.txt" |> File.read!() |> String.split("\n", trim: true)

@min_length_range 0..255
Expand Down

0 comments on commit c2d0636

Please sign in to comment.