syntax fix

This commit is contained in:
Alexander Yakovlev 2017-01-21 11:37:18 +07:00
parent a5ec8f0469
commit 87ef12ca99

View file

@ -8,8 +8,7 @@ config["sites"].each do |site|
for page in list do
page_text = wiki.get_text(page['title']).body.force_encoding("UTF-8")
changed = false
unless page_text.include?("[[Category:#{site["category"]}]]")
or page_text.include?("[[קטגוריה:#{site["category"]}]]")
unless page_text.include?("[[Category:#{site["category"]}]]") || page_text.include?("[[קטגוריה:#{site["category"]}]]")
then
next
end