@nocobase/plugin-file-manager
Version:
Provides files storage services with files collection template and attachment field.
1 lines • 1.31 kB
JavaScript
(function(){var e={895:function(e,t,r){var i=r(287);var n=/[\/\+\.]/;e.exports=function(e,t){function test(t){var r=i(t,e,n);return r&&r.length>=2}return t?test(t.split(";")[0]):test}},287:function(e){"use strict";function WildcardMatcher(e,t){this.text=e=e||"";this.hasWild=~e.indexOf("*");this.separator=t;this.parts=e.split(t)}WildcardMatcher.prototype.match=function(e){var t=true;var r=this.parts;var i;var n=r.length;var a;if(typeof e=="string"||e instanceof String){if(!this.hasWild&&this.text!=e){t=false}else{a=(e||"").split(this.separator);for(i=0;t&&i<n;i++){if(r[i]==="*"){continue}else if(i<a.length){t=r[i]===a[i]}else{t=false}}t=t&&a}}else if(typeof e.splice=="function"){t=[];for(i=e.length;i--;){if(this.match(e[i])){t[t.length]=e[i]}}}else if(typeof e=="object"){t={};for(var s in e){if(this.match(s)){t[s]=e[s]}}}return t};e.exports=function(e,t,r){var i=new WildcardMatcher(e,r||/[\/\.]/);if(typeof t!="undefined"){return i.match(t)}return i}}};var t={};function __nccwpck_require__(r){var i=t[r];if(i!==undefined){return i.exports}var n=t[r]={exports:{}};var a=true;try{e[r](n,n.exports,__nccwpck_require__);a=false}finally{if(a)delete t[r]}return n.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(895);module.exports=r})();