Move more dealing with fig into figInterface.ts

This commit is contained in:
Daniel Imms
2025-02-09 08:35:20 -08:00
parent 06f5342e22
commit 148fd5164a
3 changed files with 93 additions and 51 deletions

View File

@@ -0,0 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export function removeAnyFileExtension(label: string): string {
return label.replace(/\.[a-zA-Z0-9!#\$%&'\(\)\-@\^_`{}~\+,;=\[\]]+$/, '');
}