Make regex filters case insensitive
This commit is contained in:
parent
d7a37b5c64
commit
86d7ffc7d9
|
@ -119,7 +119,7 @@ defmodule Frenzy.Pipeline.FilterEngine do
|
||||||
end
|
end
|
||||||
|
|
||||||
defp matches(value, "matches_regex", param) do
|
defp matches(value, "matches_regex", param) do
|
||||||
{:ok, regex} = Regex.compile(param)
|
{:ok, regex} = Regex.compile(param, "i")
|
||||||
String.match?(value, regex)
|
String.match?(value, regex)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue