Skip to content

Commit d2cb2ea

Browse files
committed
fixed sonardcloud issue
Signed-off-by: Yi Cai <[email protected]>
1 parent 0a86cc4 commit d2cb2ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/bulk-import/src/utils/repository-utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const getYamlKeyValuePairs = (
100100
const [key, ...valueParts] = entry.split(':');
101101
const value = valueParts.join(':').trim();
102102
if (key && value) {
103-
keyValuePairs[key.trim()] = value.replace(/^['"]|['"]$/g, '');
103+
keyValuePairs[key.trim()] = value.replace(/(^['"])|(['"]$)/g, '');
104104
}
105105
});
106106

0 commit comments

Comments
 (0)