Merge pull request #5429 from hexagonrecursion/wmllint-fog-fix

Fix wmllint confusing fake map border for fog
This commit is contained in:
Charles Dang 2021-01-14 18:22:01 +11:00 committed by GitHub
commit c5e5ce1352
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2882,7 +2882,7 @@ def translator(filename, mapxforms, textxform):
else:
fields = [x for x in line]
outmap.append(fields)
if not maskwarn and maptype == 'map' and ("_f" in line or "_s" in line):
if not maskwarn and maptype == 'map' and re.search('_s|_f(?!me)', line):
print('"%s", line %d: warning, fog or shroud in map file' \
% (filename, lineno+1))
maskwarn = True