aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/linters/src/Linters/CargoWorkspaceDependencies.php
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/linters/src/Linters/CargoWorkspaceDependencies.php')
-rw-r--r--scripts/linters/src/Linters/CargoWorkspaceDependencies.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/linters/src/Linters/CargoWorkspaceDependencies.php b/scripts/linters/src/Linters/CargoWorkspaceDependencies.php
index 3ad86b6f..d50b5f42 100644
--- a/scripts/linters/src/Linters/CargoWorkspaceDependencies.php
+++ b/scripts/linters/src/Linters/CargoWorkspaceDependencies.php
@@ -48,7 +48,7 @@ final class CargoWorkspaceDependencies implements Linter
foreach (file($path) as $idx => $rawLine) {
$stripped = trim($rawLine);
- if (preg_match('/\A\[([^\]]+)\]\z/', $stripped, $m)) {
+ if (preg_match('/\A\[\[?([^\[\]]+)\]\]?\z/', $stripped, $m)) {
$currentSection = $m[1];
continue;
}