mirror of
https://github.com/github/codeql-action.git
synced 2025-12-31 19:50:32 +08:00
Bump artifact dependencies if CODEQL_ACTION_ARTIFACT_V2_UPGRADE enabled (#2482)
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com> Co-authored-by: Henry Mercer <henrymercer@github.com>
This commit is contained in:
20
node_modules/fast-xml-parser/src/ignoreAttributes.js
generated
vendored
Normal file
20
node_modules/fast-xml-parser/src/ignoreAttributes.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
function getIgnoreAttributesFn(ignoreAttributes) {
|
||||
if (typeof ignoreAttributes === 'function') {
|
||||
return ignoreAttributes
|
||||
}
|
||||
if (Array.isArray(ignoreAttributes)) {
|
||||
return (attrName) => {
|
||||
for (const pattern of ignoreAttributes) {
|
||||
if (typeof pattern === 'string' && attrName === pattern) {
|
||||
return true
|
||||
}
|
||||
if (pattern instanceof RegExp && pattern.test(attrName)) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return () => false
|
||||
}
|
||||
|
||||
module.exports = getIgnoreAttributesFn
|
||||
Reference in New Issue
Block a user