Skip to content

Commit afdc483

Browse files
brunocoelhoctrahey
authored andcommitted
docs(dateFilter): fix typos
Fix closing parenthesis, quotes around string literal and remove trailing whitespace. Closes angular#3250
1 parent ac8c5bc commit afdc483

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ng/filter/filters.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ var DATE_FORMATS = {
245245
m: dateGetter('Minutes', 1),
246246
ss: dateGetter('Seconds', 2),
247247
s: dateGetter('Seconds', 1),
248-
// while ISO 8601 requires fractions to be prefixed with `.` or `,`
248+
// while ISO 8601 requires fractions to be prefixed with `.` or `,`
249249
// we can be just safely rely on using `sss` since we currently don't support single or two digit fractions
250250
sss: dateGetter('Milliseconds', 3),
251251
EEEE: dateStrGetter('Day'),
@@ -298,15 +298,15 @@ var DATE_FORMATS_SPLIT = /((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+
298298
* * `'short'`: equivalent to `'M/d/yy h:mm a'` for en_US locale (e.g. 9/3/10 12:05 pm)
299299
* * `'fullDate'`: equivalent to `'EEEE, MMMM d,y'` for en_US locale
300300
* (e.g. Friday, September 3, 2010)
301-
* * `'longDate'`: equivalent to `'MMMM d, y'` for en_US locale (e.g. September 3, 2010
301+
* * `'longDate'`: equivalent to `'MMMM d, y'` for en_US locale (e.g. September 3, 2010)
302302
* * `'mediumDate'`: equivalent to `'MMM d, y'` for en_US locale (e.g. Sep 3, 2010)
303303
* * `'shortDate'`: equivalent to `'M/d/yy'` for en_US locale (e.g. 9/3/10)
304304
* * `'mediumTime'`: equivalent to `'h:mm:ss a'` for en_US locale (e.g. 12:05:08 pm)
305305
* * `'shortTime'`: equivalent to `'h:mm a'` for en_US locale (e.g. 12:05 pm)
306306
*
307307
* `format` string can contain literal values. These need to be quoted with single quotes (e.g.
308308
* `"h 'in the morning'"`). In order to output single quote, use two single quotes in a sequence
309-
* (e.g. `"h o''clock"`).
309+
* (e.g. `"h 'o''clock'"`).
310310
*
311311
* @param {(Date|number|string)} date Date to format either as Date object, milliseconds (string or
312312
* number) or various ISO 8601 datetime string formats (e.g. yyyy-MM-ddTHH:mm:ss.SSSZ and its

0 commit comments

Comments
 (0)