fix: capitalize filter not lower case trailing string, fixes #326

This commit is contained in:
Jun Yang
2021-04-17 10:30:57 +08:00
parent 8bab7957da
commit 65487654c4
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ export function stripNewlines (v: string) {
export function capitalize (str: string) {
str = stringify(str)
return str.charAt(0).toUpperCase() + str.slice(1)
return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase()
}
export function replace (v: string, pattern: string, replacement: string) {