mirror of
https://github.com/cmderdev/cmder.git
synced 2025-11-09 05:39:03 +08:00
Fix regex to match whole lines only in Get-GitStatusSetting
Co-authored-by: DRSDavidSoft <4673812+DRSDavidSoft@users.noreply.github.com>
This commit is contained in:
2
vendor/psmodules/Cmder.ps1
vendored
2
vendor/psmodules/Cmder.ps1
vendored
@@ -190,7 +190,7 @@ function Show-GitStatus {
|
||||
function Get-GitStatusSetting {
|
||||
$gitConfig = git --no-pager config -l 2>$null | Out-String
|
||||
|
||||
if ($gitConfig -match 'cmder\.(ps)?status=false') {
|
||||
if ($gitConfig -match '(?m)^cmder\.(ps)?status=false') {
|
||||
return $false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user