Skip to content

Commit 5e01a66

Browse files
committed
fix(ParamTypes): YUI Compressor fale
See #2521
1 parent 55dcf33 commit 5e01a66

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/params/paramTypes.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,32 +18,32 @@ class ParamTypes {
1818
typeQueue: any[] = [];
1919

2020
private defaultTypes: any = {
21-
hash: {
21+
"hash": {
2222
encode: valToString,
2323
decode: valFromString,
2424
is: is(String),
2525
pattern: /.*/,
2626
equals: val(true)
2727
},
28-
string: {
28+
"string": {
2929
encode: valToString,
3030
decode: valFromString,
3131
is: is(String),
3232
pattern: /[^/]*/
3333
},
34-
int: {
34+
"int": {
3535
encode: valToString,
3636
decode(val) { return parseInt(val, 10); },
3737
is(val) { return isDefined(val) && this.decode(val.toString()) === val; },
3838
pattern: /-?\d+/
3939
},
40-
bool: {
40+
"bool": {
4141
encode: val => val && 1 || 0,
4242
decode: val => parseInt(val, 10) !== 0,
4343
is: is(Boolean),
4444
pattern: /0|1/
4545
},
46-
date: {
46+
"date": {
4747
encode(val) {
4848
return !this.is(val) ? undefined : [
4949
val.getFullYear(),
@@ -61,14 +61,14 @@ class ParamTypes {
6161
pattern: /[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,
6262
capture: /([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/
6363
},
64-
json: {
64+
"json": {
6565
encode: toJson,
6666
decode: fromJson,
6767
is: is(Object),
6868
equals: equals,
6969
pattern: /[^/]*/
7070
},
71-
any: { // does not encode/decode
71+
"any": { // does not encode/decode
7272
encode: identity,
7373
decode: identity,
7474
equals: equals,

0 commit comments

Comments
 (0)