Skip to content

Commit

Permalink
RavenDB-21797 Fix regex in schemaInfo.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
Lwiel committed Dec 19, 2023
1 parent f90d2f9 commit 5c6ba88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/schemaInfo.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function SetSchemaInfoInTeamCity($projectDir) {
$schemaVersionFile = Join-Path $projectDir -ChildPath "src\Raven.Server\Storage\Schema\SchemaUpgrader.cs"
$currentVersionClassRegex = [regex]'(?sm)internal class CurrentVersion[\s\r\n]*{[^}]*'
$currentVersionClassRegex = [regex]'(?sm)internal sealed class CurrentVersion[\s\r\n]*{[^}]*'
$content = Get-Content -Raw $schemaVersionFile
$m = [regex]::Match($content, $currentVersionClassRegex)
$versions = $m[0]
Expand Down

0 comments on commit 5c6ba88

Please sign in to comment.