@tomhughes commented on this pull request.
> @@ -135,6 +142,16 @@ def check_values_for_raw_html(hash)
end
end
+ def check_values_for_gender_macro(hash)
+ hash.each_pair do |k, v|
+ if v.is_a? Hash
+ check_values_for_gender_macro(v)
+ else
+ raise "Avoid using GENDER macro in '#{k}: #{v}'" if v.include?
"{{GENDER:"
I've updated it to handle `PLURAL` and `GRAMMAR` as well now.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6342#discussion_r2291876120
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/6342/review/3141905...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev