Projektstart
This commit is contained in:
23
backend/node_modules/@fastify/send/lib/containsDotFile.js
generated
vendored
Normal file
23
backend/node_modules/@fastify/send/lib/containsDotFile.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
/*!
|
||||
* send
|
||||
* Copyright(c) 2012 TJ Holowaychuk
|
||||
* Copyright(c) 2014-2022 Douglas Christopher Wilson
|
||||
* MIT Licensed
|
||||
*/
|
||||
'use strict'
|
||||
/**
|
||||
* Determine if path parts contain a dotfile.
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
function containsDotFile (parts) {
|
||||
for (let i = 0, il = parts.length; i < il; ++i) {
|
||||
if (parts[i].length !== 1 && parts[i][0] === '.') {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
module.exports.containsDotFile = containsDotFile
|
||||
Reference in New Issue
Block a user