Skip to content

Commit 950c3d6

Browse files
committed
docs: enhance supported_chars
1 parent e7d30c8 commit 950c3d6

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

lib/captcha.ex

+6-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ defmodule Captcha do
1717
Create by options:
1818
1919
iex> Captcha.create(
20-
...> set_chars: "1234567890abcdefgABCDEFG",
20+
...> set_chars: "123456789abcdefgABCDEFG",
2121
...> add_chars: 6,
2222
...> set_color: %{r: 0, g: 116, b: 204},
2323
...> view: %{w: 220, h: 120},
@@ -45,7 +45,7 @@ defmodule Captcha do
4545
example:
4646
4747
iex> Captcha.create(
48-
...> set_chars: "1234567890abcdefgABCDEFG",
48+
...> set_chars: "123456789abcdefgABCDEFG",
4949
...> add_chars: 6,
5050
...> set_color: %{r: 0, g: 116, b: 204},
5151
...> view: %{w: 220, h: 120},
@@ -93,6 +93,10 @@ defmodule Captcha do
9393
defdelegate create_by_name(captcha_name, difficulty \\ :easy, options \\ nil), to: Native
9494

9595
@doc """
96+
Supported Chars
97+
98+
Not support chars: 0, O, o, L, i
99+
96100
example:
97101
98102
iex> Captcha.supported_chars()

test/captcha_test.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule CaptchaTest do
44
alias Captcha.Native.Geometry
55
alias Captcha.Native.Filter.{Cow, Dots, Grid, Noise, Wave}
66

7-
@chars "1234567890abcdefgABCDEFG"
7+
@chars "123456789abcdefgABCDEFG"
88

99
test "gen funs" do
1010
assert {_chars, _png} = Native.easy()

0 commit comments

Comments
 (0)