Przeglądaj źródła

Fixed build.ps1 (#125)

Alexander Kopachov 2 lat temu
rodzic
commit
75fa90301a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      build.ps1

+ 1 - 1
build.ps1

@@ -73,7 +73,7 @@ function Features-Configure {
         $key = $keyValue[0]
         $key = $keyValue[0]
         $value = $keyValue[1]
         $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
     Set-Content -Path "totp/features_config.h" -NoNewline -Value $featuresConfigContent