handle different quotes and empty strings
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 14 Dec 2005 17:16:46 +0000 (17:16 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 14 Dec 2005 17:16:46 +0000 (17:16 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2374 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/external/dtd2js.pl

index 3e79d2f..432e28a 100755 (executable)
@@ -9,7 +9,9 @@
 print "var entities = {};";
 while( $line = <> ) {
 
-       if ($line =~ /<!ENTITY\s+(\S+)\s+(".+")\s*>/) {
+       if ($line =~ /<!ENTITY\s+(\S+)\s+(["'].*["'])\s*>/) {
                print "entities['$1'] = $2;\n"; 
+       } else {
+               print STDERR "Problem with: $line";
        }
 }