(source: string)
| 61 | } |
| 62 | |
| 63 | const isBlocked = (source: string): boolean => { |
| 64 | return blockedPatterns.some(pattern => { |
| 65 | if (typeof pattern === 'string') { |
| 66 | return source === pattern || source.startsWith(pattern + '/'); |
| 67 | } |
| 68 | return pattern.test(source); |
| 69 | }); |
| 70 | }; |
| 71 | |
| 72 | return { |
| 73 | name: 'esengine:block-editor', |