feat: promise in expression & nested property, #533 #276

This commit is contained in:
Harttle
2022-08-27 23:19:16 +08:00
committed by Harttle
parent 0997530bab
commit bbf00f37bf
19 changed files with 256 additions and 20537 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ export function changeCase (str: string): string {
}
export function ellipsis (str: string, N: number): string {
return str.length > N ? str.substr(0, N - 3) + '...' : str
return str.length > N ? str.slice(0, N - 3) + '...' : str
}
// compare string in case-insensitive way, undefined values to the tail