|
|
| article_namespace == 0 | | article_namespace == 0 |
| & user_age == 0 | | & user_age == 0 |
| & ( | | & ( |
| simanumer := "\b([4-8][0-9]{2}-?[0-9]{4})\b"; | | simanumer := "\b([4-8][0-9]{2}-?[0-9]{4})\b"; |
| | |
| | /* |
| | Stöðvar ekki ef þetta er í setningu |
| | eins og "um 700-1000 metra hæð" |
| | */ |
| | okei_ord := "\b(um|u\.þ\.b|milli|m|cm|mm|km|hæð|þyngd|breidd|vídd)\b"; |
| | okei_ordhlutar := "(metra|milljón|billjón|þúsund|sent|cent)"; |
| | |
| in_ref := "<\s*ref[^\/]*>[^<]*"+simanumer; | | in_ref := "<\s*ref[^\/]*>[^<]*"+simanumer; |
| added_lines rlike simanumer & | | added_lines rlike simanumer & |
| !(removed_lines rlike simanumer) & | | !(removed_lines rlike simanumer) & |
| | !(added_lines rlike okei_ord) & |
| | !(added_lines rlike okei_ordhlutar) & |
| !(added_lines rlike in_ref) | | !(added_lines rlike in_ref) |
| ) | | ) |