mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-29 21:11:38 +01:00
Move more dealing with fig into figInterface.ts
This commit is contained in:
8
extensions/terminal-suggest/src/helpers/file.ts
Normal file
8
extensions/terminal-suggest/src/helpers/file.ts
Normal 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!#\$%&'\(\)\-@\^_`{}~\+,;=\[\]]+$/, '');
|
||||
}
|
||||
Reference in New Issue
Block a user