From: Benjamin Auder Date: Wed, 7 Feb 2018 01:30:08 +0000 (+0100) Subject: Fix bug: regexp for 'REFERENCES' was case-sensitive X-Git-Url: https://git.auder.net/doc/html/css/current/git-logo.png?a=commitdiff_plain;h=79de03374d902dfea55cf8bca5c9e0e07f976a58;p=erdiag.git Fix bug: regexp for 'REFERENCES' was case-sensitive --- diff --git a/parser.js b/parser.js index eeafa08..3d31d8d 100644 --- 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); });