Compare commits
1 commit
2055113f4b
...
b9348c9e91
Author | SHA1 | Date | |
---|---|---|---|
b9348c9e91 |
2 changed files with 3 additions and 3 deletions
|
@ -19,9 +19,9 @@ jobs:
|
|||
composer config --no-interaction allow-plugins.bamarni/composer-bin-plugin true
|
||||
composer require --dev bamarni/composer-bin-plugin
|
||||
composer bin phplint require --dev overtrue/phplint
|
||||
composer require --dev friendsofphp/php-cs-fixer
|
||||
composer require --dev friendsofphp/php-cs-fixer==2.19.0 --with-all-dependencies
|
||||
- name: Lint
|
||||
run: vendor/bin/phplint --no-cache --no-progress --exclude=vendor --verbose
|
||||
- name: PHP CS Fixer
|
||||
run: vendor/bin/php-cs-fixer check --using-cache=no --diff --verbose .
|
||||
run: PHP_CS_FIXER_IGNORE_ENV=yes vendor/bin/php-cs-fixer fix --dry-run --verbose --diff .
|
||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||
|
|
|
@ -16,7 +16,7 @@ function hook_clickat_render_linklist($data)
|
|||
'/([^\S]+)@([\w]+)@([\w_\-\.]+)/' => '\1<a href="https://\3/@\2">@\2</a>',
|
||||
'/([^\S]+)@([\w]+)/' => '\1<a href="https://x.com/\2">@\2</a>'
|
||||
);
|
||||
foreach ($data['links'] as &value) {
|
||||
foreach ($data['links'] as &$value) {
|
||||
if (strpos($value['description'], '@') !== false) {
|
||||
foreach ($patterns as $nic => $link) {
|
||||
$value['description'] = preg_replace($nic, $link, $value['description']);
|
||||
|
|
Loading…
Add table
Reference in a new issue