Rozdíly mezi verzemi

PoložkaVerze z 7. 12. 2016, 21:39 od uživatele Matěj SuchánekVerze z 17. 3. 2017, 22:03 od uživatele Matěj Suchánek
Základní informace
Poznámky:
N antispamový filtr reagující mimo ref --MU
N antispamový filtr reagující mimo ref --MU


Úprava, aby nechytal v EO. --Matěj Suchánek
Úprava, aby nechytal v EO. --Matěj Suchánek


Relevantní úprava title --MU
Relevantní úprava title --MU


Změna účelu filtru + úprava title --MU
Změna účelu filtru + úprava title --MU


Zakomentování nepoužité proměnné + co má být </}}>? --Matěj Suchánek
Zakomentování nepoužité proměnné + co má být </}}>? --Matěj Suchánek


Hlavní jmenný prostor. --Matěj Suchánek
Hlavní jmenný prostor. --Matěj Suchánek


Oprava kontroly uvnitř referencí a šablon. --Matěj Suchánek
Oprava kontroly uvnitř referencí a šablon. --Matěj Suchánek
Vylepšení regexu (do nekonečna to ale nepůjde). --Matěj Suchánek
Podmínky filtru
Podmínky:
words := "https?:\/\/";
words := "https?:\/\/";
words_in_tags := '(<ref( [^>]+)?>[^<]*(' + words + ')[^<]*</ref>|{{[^}]*?(' + words + ')|(' + words + ')[^{}]*?}})';
words_in_tags := '(<ref( [^>]+)?>[^<]*(' + words + ')[^<]*</ref>|{{[^}]*?(' + words + ')|(' + words + ')([^{}]|{{[^{}]+?}})*?}})';
old_count_simple := rcount(words, lcase(removed_lines));
old_count_simple := rcount(words, lcase(removed_lines));
new_count_simple := rcount(words, lcase(added_lines));
new_count_simple := rcount(words, lcase(added_lines));
old_count_tags := rcount(words_in_tags, lcase(removed_lines));
old_count_tags := rcount(words_in_tags, lcase(removed_lines));
new_count_tags := rcount(words_in_tags, lcase(added_lines));
new_count_tags := rcount(words_in_tags, lcase(added_lines));


article_namespace == 0
article_namespace == 0
& new_count_simple - new_count_tags > old_count_simple - old_count_tags
& new_count_simple - new_count_tags > old_count_simple - old_count_tags
& (
& (
  new_link_header := strpos(lcase(new_wikitext), "externí odkazy");
  new_link_header := strpos(lcase(new_wikitext), "externí odkazy");
  new_link_header === false |
  new_link_header === false |
  (
  (
   new_after_text := substr(lcase(new_wikitext), new_link_header);
   new_after_text := substr(lcase(new_wikitext), new_link_header);
   new_after_count := rcount(words, new_after_text);
   new_after_count := rcount(words, new_after_text);
   old_link_header := strpos(lcase(old_wikitext), "externí odkazy");
   old_link_header := strpos(lcase(old_wikitext), "externí odkazy");
   old_after_count := old_link_header !== false
   old_after_count := old_link_header !== false
   ? rcount(words, substr(lcase(old_wikitext), old_link_header))
   ? rcount(words, substr(lcase(old_wikitext), old_link_header))
   : 0;
   : 0;
   (new_count_simple - new_count_tags) - (old_count_simple - old_count_tags) > new_after_count - old_after_count
   (new_count_simple - new_count_tags) - (old_count_simple - old_count_tags) > new_after_count - old_after_count
  )
  )
)
)