Browse Source

downcase rule argument

pull/26/head
Inhji Y. 1 year ago
parent
commit
6b5f46769e
  1. 2
      apps/tags/lib/tags/rules.ex

2
apps/tags/lib/tags/rules.ex

@ -39,7 +39,7 @@ defmodule Tags.Rules do
def rule_match?("contains", value, argument) do
value
|> String.downcase()
|> String.contains?(argument)
|> String.contains?(String.downcase(argument))
end
def rule_match?("matches", value, argument) do

Loading…
Cancel
Save