1
0
Fork 0
mirror of synced 2024-06-01 18:20:18 +12:00

Fix syntax for ellipsis helper

Problem: The suggested ellipsis syntax breaks the handlebars expression due to an additional comma.

Solution: Removed the comma from the help text,
This commit is contained in:
Tom 2022-10-29 11:56:16 +02:00 committed by GitHub
parent aebc1bbe7a
commit c4125fb70d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -625,7 +625,7 @@
"length"
],
"numArgs": 2,
"example": "{{ellipsis 'foo bar baz', 7}} -> foo bar…",
"example": "{{ellipsis 'foo bar baz' 7}} -> foo bar…",
"description": "<p>Truncates a string to the specified <code>length</code>, and appends it with an elipsis, <code>…</code>.</p>\n"
},
"hyphenate": {
@ -1219,4 +1219,4 @@
"description": "<p>Produce a humanized duration left/until given an amount of time and the type of time measurement.</p>\n"
}
}
}
}