mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-06-17 17:46:33 +00:00

convert all windows drive letters to lower case. [ATL-380] Signed-off-by: Akos Kitta <kittaakos@typefox.io>
10 lines
334 B
TypeScript
10 lines
334 B
TypeScript
export const naturalCompare: (left: string, right: string) => number = require('string-natural-compare').caseInsensitive;
|
|
|
|
export function notEmpty(arg: string | undefined | null): arg is string {
|
|
return !!arg;
|
|
}
|
|
|
|
export function firstToLowerCase(what: string): string {
|
|
return what.charAt(0).toLowerCase() + what.slice(1);
|
|
}
|