aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/linters/src/Linters/SortedDependencies.php
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/linters/src/Linters/SortedDependencies.php')
-rw-r--r--scripts/linters/src/Linters/SortedDependencies.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/linters/src/Linters/SortedDependencies.php b/scripts/linters/src/Linters/SortedDependencies.php
index 78ea0eb2..7a9fe20c 100644
--- a/scripts/linters/src/Linters/SortedDependencies.php
+++ b/scripts/linters/src/Linters/SortedDependencies.php
@@ -62,7 +62,7 @@ final class SortedDependencies implements Linter
foreach (explode("\n", $content) as $line) {
$stripped = rtrim($line, "\r\n");
- if (preg_match('/\A\s*\[([^\]]+)\]\s*\z/', $stripped, $m)) {
+ if (preg_match('/\A\s*\[\[?([^\[\]]+)\]\]?\s*\z/', $stripped, $m)) {
$current = $m[1];
$sections[$current] ??= [];
continue;