Skip to content

Commit d41fcdf

Browse files
committed
fix: match all utf8 chars instead of just ascii
1 parent 656dc7c commit d41fcdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/algora/integrations/github/command.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ defmodule Algora.Github.Command do
1515
repeat(
1616
choice([
1717
# Any text that is not a command
18-
[not: ?/] |> ascii_string(min: 1) |> ignore(),
18+
[not: ?/] |> utf8_string(min: 1) |> ignore(),
1919

2020
# Known command
2121
choice([
@@ -28,7 +28,7 @@ defmodule Algora.Github.Command do
2828
"/"
2929
|> string()
3030
|> ignore()
31-
|> concat(ascii_string([?a..?z, ?A..?Z, ?_, ?-], min: 1))
31+
|> concat(utf8_string([?a..?z, ?A..?Z, ?_, ?-], min: 1))
3232
|> ignore()
3333
])
3434
)

0 commit comments

Comments
 (0)