فهرست منبع

Fixed build.ps1 (#125)

Alexander Kopachov 2 سال پیش
والد
کامیت
75fa90301a
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      build.ps1

+ 1 - 1
build.ps1

@@ -73,7 +73,7 @@ function Features-Configure {
         $key = $keyValue[0]
         $value = $keyValue[1]
 
-        $featuresConfigContent = $featuresConfigContent -replace "(#define +)($key)( +.+)(( |$)+)", "`$1`$2 $value`$4"
+        $featuresConfigContent = $featuresConfigContent -replace "(#define +)($key)( +.+)(($|\r?\n?)+)", "`$1`$2 $value`$4"
     }
 
     Set-Content -Path "totp/features_config.h" -NoNewline -Value $featuresConfigContent