mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-17 21:40:39 -07:00
fix: capitalize filter not lower case trailing string, fixes #326
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user