(path)
| 18 | ].flat() |
| 19 | |
| 20 | export function blockIndex(path) { |
| 21 | return pathRegExps.some((pathRe) => pathRe.test(path)) |
| 22 | } |
| 23 | |
| 24 | const middleware = function blockRobots(req, res, next) { |
| 25 | if (blockIndex(req.path)) res.set('x-robots-tag', 'noindex') |
no outgoing calls
no test coverage detected