fix(admin-ui): remove button labels on smaller screens in podcast view

- update components renderer regex to include special characters
- fix itunes_explicit mapping
during import
This commit is contained in:
Yassine Doghri 2023-07-29 09:57:35 +00:00
commit 9cc5ffd143
5 changed files with 20 additions and 6 deletions

View file

@ -96,7 +96,7 @@ class ComponentRenderer
private function renderPairedTags(string $output): string
{
$pattern = '/<\s*(?<name>[A-Z][A-Za-z0-9\.]*?)(?<attributes>[\s\S\=\'\"]*)>(?<slot>.*)<\/\s*\1\s*>/uUsm';
$pattern = '/<\s*(?<name>[A-Z][A-Za-z0-9\.]*?)(?<attributes>(\s*[\w\-]+\s*=\s*(\'[^\']*\'|\"[^\"]*\"))+\s*)>(?<slot>.*)<\/\s*\1\s*>/uUsm';
ini_set('pcre.backtrack_limit', '-1');
/*
$matches[0] = full tags matched and all of its content