Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit b3c7a6d

Browse files
brunocoelhopetebacondarwin
authored andcommitted
docs(dateFilter): fix typos
Fix closing parenthesis, quotes around string literal and remove trailing whitespace. Closes #3250
1 parent 424bd49 commit b3c7a6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ng/filter/filters.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,15 +294,15 @@ var DATE_FORMATS_SPLIT = /((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+
294294
* * `'short'`: equivalent to `'M/d/yy h:mm a'` for en_US locale (e.g. 9/3/10 12:05 pm)
295295
* * `'fullDate'`: equivalent to `'EEEE, MMMM d,y'` for en_US locale
296296
* (e.g. Friday, September 3, 2010)
297-
* * `'longDate'`: equivalent to `'MMMM d, y'` for en_US locale (e.g. September 3, 2010
297+
* * `'longDate'`: equivalent to `'MMMM d, y'` for en_US locale (e.g. September 3, 2010)
298298
* * `'mediumDate'`: equivalent to `'MMM d, y'` for en_US locale (e.g. Sep 3, 2010)
299299
* * `'shortDate'`: equivalent to `'M/d/yy'` for en_US locale (e.g. 9/3/10)
300300
* * `'mediumTime'`: equivalent to `'h:mm:ss a'` for en_US locale (e.g. 12:05:08 pm)
301301
* * `'shortTime'`: equivalent to `'h:mm a'` for en_US locale (e.g. 12:05 pm)
302302
*
303303
* `format` string can contain literal values. These need to be quoted with single quotes (e.g.
304304
* `"h 'in the morning'"`). In order to output single quote, use two single quotes in a sequence
305-
* (e.g. `"h o''clock"`).
305+
* (e.g. `"h 'o''clock'"`).
306306
*
307307
* @param {(Date|number|string)} date Date to format either as Date object, milliseconds (string or
308308
* number) or various ISO 8601 datetime string formats (e.g. yyyy-MM-ddTHH:mm:ss.SSSZ and its

0 commit comments

Comments
 (0)