Skip to content

Commit 03dd775

Browse files
committed
Add regex101 links
1 parent dbc7609 commit 03dd775

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

dagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "GotenbergBundle",
3-
"engineVersion": "v0.18.17",
3+
"engineVersion": "v0.18.14",
44
"sdk": {
55
"source": "php"
66
},

docs/ValidateUrlDoc.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ private function extractUrls(SplFileInfo $file): array
8585
{
8686
$content = file_get_contents($file->getPathname());
8787

88+
// https://regex101.com/r/t5uiUp/1
89+
// https://regex101.com/r/p62cij/1
8890
match ($file->getExtension()) {
8991
'php' => preg_match_all('/(?:@see\s+|->info\([^)]*)(https?:\/\/[^\s\'")]+)(?:[^)]*\))?/', $content, $matches),
9092
'md' => preg_match_all('/\[[^\]]+\]\((https?:\/\/[^\s\*)]+)\)/', $content, $matches),

0 commit comments

Comments
 (0)