You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
296 B
JavaScript
10 lines
296 B
JavaScript
4 years ago
|
"use strict";
|
||
|
|
||
|
const matchesFormat = require("@validatem/matches-format");
|
||
|
const wrapError = require("@validatem/wrap-error");
|
||
|
|
||
4 years ago
|
module.exports = wrapError("Must not include a collection name", [
|
||
|
// FIXME: Validate format properly (including disallowing uppercase!)
|
||
4 years ago
|
matchesFormat(/^[^.]+$/)
|
||
|
]);
|