Fix bug: regexp for 'REFERENCES' was case-sensitive
authorBenjamin Auder <benjamin.auder@somewhere>
Wed, 7 Feb 2018 01:30:08 +0000 (02:30 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Wed, 7 Feb 2018 01:30:08 +0000 (02:30 +0100)
parser.js

index eeafa08..3d31d8d 100644 (file)
--- a/parser.js
+++ b/parser.js
@@ -179,7 +179,7 @@ class ErDiags
                                if (!!attr.qualifiers && !!attr.qualifiers.match(/references/i))
                                {
                                        Object.assign(newField, {ref: attr.qualifiers.match(/references ([^\s]+)/i)[1]});
-                                       attr.qualifiers = attr.qualifiers.replace(/references [^\s]+/, "");
+                                       attr.qualifiers = attr.qualifiers.replace(/references [^\s]+/i, "");
                                }
                                newTable.push(newField);
                        });