Skip to content

Commit 20501aa

Browse files
committed
Fix regex for matching INI extension|zend_extension directives
1 parent f1c20ba commit 20501aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Installing/Ini/RemoveIniEntryWithFileGetContents.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static function (string $path) use ($additionalIniDirectory): bool {
6060
}
6161

6262
$regex = sprintf(
63-
'/^(%s\w*=\w*%s)/m',
63+
'/^(%s\s*=\s*%s)/m',
6464
$package->extensionType() === ExtensionType::PhpModule ? 'extension' : 'zend_extension',
6565
$package->extensionName()->name(),
6666
);

0 commit comments

Comments
 (0)