Skip to content

Commit

Permalink
finishing
Browse files Browse the repository at this point in the history
  • Loading branch information
devajmeireles committed Jun 12, 2024
1 parent 11bfeb1 commit 548b4c7
Show file tree
Hide file tree
Showing 4 changed files with 137 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.1]
php: [8.2]
laravel: [10.*]

name: PHP:${{ matrix.php }} / Laravel:${{ matrix.laravel }}
Expand Down
6 changes: 3 additions & 3 deletions app/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ function apply_prefix(array $data): array
}

return collect($data)
->filter(fn ($value) => is_string($value))
->filter(fn ($value) => str_contains($value, '<x-'))
->filter(fn (mixed $value) => is_string($value))
->filter(fn (string $value) => str_contains($value, '<x-'))
->mapWithKeys(function (string $value, string $key) use ($prefix) {
$value = preg_replace_callback('/(<\/?x-(?!slot:))([^>]*>)/', function ($matches) use ($prefix) {
$value = preg_replace_callback('/(<\/?x-(?!slot:))([^>]*>)/', function (array $matches) use ($prefix) {
return "{$matches[1]}{$prefix}{$matches[2]}";
}, $value);

Expand Down
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^8.1",
"pestphp/pest": "^2.0",
"pestphp/pest-plugin-type-coverage": "^2.0",
"spatie/laravel-ignition": "^2.0",
"spatie/laravel-ray": "^1.33"
},
Expand Down Expand Up @@ -57,6 +58,7 @@
"format": "./vendor/bin/pint",
"ci": [
"./vendor/bin/pint --test",
"./vendor/bin/pest --type-coverage",
"./vendor/bin/pest"
]
},
Expand Down
132 changes: 131 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 548b4c7

Please sign in to comment.