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);