diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-09-04 21:21:47 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-09-04 21:30:18 +0200 |
commit | 0e1dc3e7c69995c691e1dd82e3c2bc68748661ca (patch) | |
tree | f2a4b5cffc72e33c902b67083bbaa35b6f22f0ca /server/initializers/constants.ts | |
parent | b0f9f39ed70299a208d1b388c72de8b7f3510cb7 (diff) | |
download | PeerTube-0e1dc3e7c69995c691e1dd82e3c2bc68748661ca.tar.gz PeerTube-0e1dc3e7c69995c691e1dd82e3c2bc68748661ca.tar.zst PeerTube-0e1dc3e7c69995c691e1dd82e3c2bc68748661ca.zip |
Convert tests to typescript
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index b93a85859..2e3472d1e 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -110,7 +110,7 @@ const CONSTRAINTS_FIELDS = { | |||
110 | NAME: { min: 3, max: 50 }, // Length | 110 | NAME: { min: 3, max: 50 }, // Length |
111 | DESCRIPTION: { min: 3, max: 250 }, // Length | 111 | DESCRIPTION: { min: 3, max: 250 }, // Length |
112 | EXTNAME: [ '.mp4', '.ogv', '.webm' ], | 112 | EXTNAME: [ '.mp4', '.ogv', '.webm' ], |
113 | INFO_HASH: { min: 40, max: 40 }, // Length, infohash is 20 bytes length but we represent it in hexa so 20 * 2 | 113 | INFO_HASH: { min: 40, max: 40 }, // Length, info hash is 20 bytes length but we represent it in hexadecimal so 20 * 2 |
114 | DURATION: { min: 1, max: 7200 }, // Number | 114 | DURATION: { min: 1, max: 7200 }, // Number |
115 | TAGS: { min: 0, max: 3 }, // Number of total tags | 115 | TAGS: { min: 0, max: 3 }, // Number of total tags |
116 | TAG: { min: 2, max: 10 }, // Length | 116 | TAG: { min: 2, max: 10 }, // Length |