4 const matchesStringOrRegExp = require("./matchesStringOrRegExp");
7 * Check if an options object's propertyName contains a user-defined string or
8 * regex that matches the passed in input.
10 module.exports = function optionsMatches(
12 propertyName /*: string*/,
17 options[propertyName] &&
18 typeof input === "string" &&
19 matchesStringOrRegExp(input, options[propertyName])