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

Commit 502bb64

Browse files
kimpettersenjeffbcross
authored andcommitted
chore($locale): add quotation marks to reserved keyword "short"
Although the "short" keyword was pulled as a reserved word from ES5, compilers like YUICompressor still treat it as reserved and may break. See 7.6.1.1 of ES5 spec for updated reserved words: http://www.ecma-international.org/publications/files/ECMA-ST-ARCH/ECMA-262%205th%20edition%20December%202009.pdf Closes #5320
1 parent 6cba9c5 commit 502bb64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/locale.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function $LocaleProvider(){
5353
SHORTDAY: 'Sun,Mon,Tue,Wed,Thu,Fri,Sat'.split(','),
5454
AMPMS: ['AM','PM'],
5555
medium: 'MMM d, y h:mm:ss a',
56-
short: 'M/d/yy h:mm a',
56+
'short': 'M/d/yy h:mm a',
5757
fullDate: 'EEEE, MMMM d, y',
5858
longDate: 'MMMM d, y',
5959
mediumDate: 'MMM d, y',

0 commit comments

Comments
 (0)