Ajout du choix des utilisateurs sur un événement. Ajout de fichiers dans un événement. (dropzone cassée)
This commit is contained in:
20
em2rp/node_modules/fast-xml-parser/src/ignoreAttributes.js
generated
vendored
Normal file
20
em2rp/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