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
"use strict";
|
|
|
|
const matchesFormat = require("@validatem/matches-format");
|
|
const wrapError = require("@validatem/wrap-error");
|
|
|
|
module.exports = wrapError("Must not include a collection name", [
|
|
// FIXME: Validate format properly (including disallowing uppercase!)
|
|
matchesFormat(/^[^.]+$/)
|
|
]);
|