We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01a7cd0 commit 42c4389Copy full SHA for 42c4389
src/Console/Commands/Hooks/PrettierPreCommitHook.php
@@ -77,6 +77,7 @@ protected function additionalParams(): string
77
$additionalParams = config('git-hooks.code_analyzers.prettier.additional_params');
78
79
if (! empty($additionalParams)) {
80
+ $additionalParams = preg_replace('/\s+\.(?:(\s)|$)/', '$1', $additionalParams);
81
$additionalParams = preg_replace('/\s*--(config|find-config-path|write|check)\b(=\S*)?\s*/', '', $additionalParams);
82
}
83
0 commit comments