From 79de03374d902dfea55cf8bca5c9e0e07f976a58 Mon Sep 17 00:00:00 2001 From: Benjamin Auder <benjamin.auder@somewhere> Date: Wed, 7 Feb 2018 02:30:08 +0100 Subject: [PATCH] Fix bug: regexp for 'REFERENCES' was case-sensitive --- parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); -- 2.44.0