mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-02 01:25:39 -05:00
cosmetic changes (#13820)
* cosmetic changes * moved limitLongName function to the utils
This commit is contained in:
@@ -96,3 +96,12 @@ export function htmlEscape(html: string): string {
|
||||
function escapeFileName(str: string): string {
|
||||
return str.replace(/\*/g, '_');
|
||||
}
|
||||
|
||||
export function limitLongName(name: string, maxLength: number): string {
|
||||
if (name.length > maxLength) {
|
||||
return name.slice(0, maxLength) + '...';
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user