mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-26 09:01:13 +02:00
4 lines
148 B
JavaScript
4 lines
148 B
JavaScript
export default function(fileName, toTrimArray=[]){
|
|
const extension = new RegExp(toTrimArray.join('$|'));
|
|
return fileName.replace(extension, "");
|
|
} |