From 318dd748f155a6e7c61ada3aadcb4556488eceb4 Mon Sep 17 00:00:00 2001 From: Ugo Bechameil Date: Thu, 4 Jul 2024 10:38:02 +0200 Subject: [PATCH] Update indexHelper.js --- reverse_engineering/helpers/indexHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reverse_engineering/helpers/indexHelper.js b/reverse_engineering/helpers/indexHelper.js index eb3ebef..a5b67a8 100644 --- a/reverse_engineering/helpers/indexHelper.js +++ b/reverse_engineering/helpers/indexHelper.js @@ -1,7 +1,7 @@ const regexConfig = require('./teradataRegexConfig'); const cleanKeyName = (name = '') => { - return name.replace(/^("|,|\s+)+$/gim, ''); + return name.replace(/^("|,|\s+)+|("|,|\s+)+$/gim, ''); }; const parseIndexKeys = statement => { const mathResult = statement.match(regexConfig.indexKeyName);