(content)
| 14 | } |
| 15 | |
| 16 | function assertPostContentWithinLimit(content) { |
| 17 | const size = getUtf8ByteLength(content); |
| 18 | if (size > POST_CONTENT_MAX_BYTES) { |
| 19 | throw new Error(`Post content cannot exceed ${formatPostContentSize(POST_CONTENT_MAX_BYTES)}.`); |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | function normalizeTags(tags) { |
| 24 | if (Array.isArray(tags)) { |
no test coverage detected