Pattern Match with Japanese

sora1
Tue, 02 Apr 2024 12:13:18 +0000
Questions / Help

version

elixir: 1.16.0

erlang: 26.2.1

Hi! When I used pattern match with japanese words like this below

String.match?("あ", ~r/[りんご]/)

It returns true, But it shouldn`t.

I tried other language like Ruby, and it returned false.
Could anyone tell me What is happening in this code?

3 posts - 2 participants