node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

18
server/node_modules/@strapi/utils/dist/template.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
'use strict';
/**
* Create a strict interpolation RegExp based on the given variables' name
*/ const createStrictInterpolationRegExp = (allowedVariableNames, flags)=>{
const oneOfVariables = allowedVariableNames.join('|');
// 1. We need to match the delimiters: <%= ... %>
// 2. We accept any number of whitespaces characters before and/or after the variable name: \s* ... \s*
// 3. We only accept values from the variable list as interpolation variables' name: : (${oneOfVariables})
return new RegExp(`<%=\\s*(${oneOfVariables})\\s*%>`, flags);
};
/**
* Create a loose interpolation RegExp to match as many groups as possible
*/ const createLooseInterpolationRegExp = (flags)=>new RegExp(/<%=([\s\S]+?)%>/, flags);
exports.createLooseInterpolationRegExp = createLooseInterpolationRegExp;
exports.createStrictInterpolationRegExp = createStrictInterpolationRegExp;
//# sourceMappingURL=template.js.map