Skip to content

Commit 286d44e

Browse files
committed
More specific regex
1 parent 840860d commit 286d44e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build/gen_stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function extractStubHash(string $arginfoFile): ?string {
175175
}
176176

177177
$arginfoCode = file_get_contents($arginfoFile);
178-
if (!preg_match('/\* Stub hash: (\\S+)/', $arginfoCode, $matches)) {
178+
if (!preg_match('/\* Stub hash: (v2_\\S+)/', $arginfoCode, $matches)) {
179179
return null;
180180
}
181181

0 commit comments

Comments
 (0)