Don't check .js files for entities
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 18 Apr 2011 04:38:46 +0000 (04:38 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 18 Apr 2011 04:38:46 +0000 (04:38 +0000)
Must have asked this script to check JS files for valid entities
for a reason at some point in the dark past, but it couldn't have
been a very good reason; we're getting a false positive that needs
to be hushed now. Better to just stop looking for XML entities in
JavaScript.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@20145 dcc99617-32d9-48b4-a31d-7c20da2025e4

build/i18n/tests/check_entities.py

index 3756e2a..3dce59c 100755 (executable)
@@ -127,7 +127,6 @@ def check_files(entities):
         for root, dirs, files in os.walk(x_dir):
             for x_file in files:
                 if os.path.splitext(x_file)[1] == '.xul' or \
-                                  os.path.splitext(x_file)[1] == '.js' or \
                                   os.path.splitext(x_file)[1] == '.html' or \
                                   os.path.splitext(x_file)[1] == '.xhtml':
                     check_xul(root, x_file, entities)