Skip to content

Commit c097ea6

Browse files
authored
Bump version to v3.5.0 (#437)
1 parent 9a43056 commit c097ea6

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/SonarCloud.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
# (PRs from forks can't access secrets other than secrets.GITHUB_TOKEN for security reasons)
1818
if: ${{ !github.event.pull_request.head.repo.fork }}
1919
env:
20-
version: '3.4.0'
21-
versionFile: '3.4.0'
20+
version: '3.5.0'
21+
versionFile: '3.5.0'
2222
steps:
2323
- name: Set up JDK 17
2424
uses: actions/setup-java@v4

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ for:
2727
- ps: dotnet restore SmartFormat.sln --verbosity quiet
2828
- ps: dotnet add .\SmartFormat.Tests\SmartFormat.Tests.csproj package AltCover
2929
- ps: |
30-
$version = "3.4.0"
30+
$version = "3.5.0"
3131
$versionFile = $version + "." + ${env:APPVEYOR_BUILD_NUMBER}
3232
3333
if ($env:APPVEYOR_PULL_REQUEST_NUMBER) {

src/Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<Copyright>Copyright 2011-$(CurrentYear) SmartFormat Project</Copyright>
99
<RepositoryUrl>https://github.com/axuno/SmartFormat.git</RepositoryUrl>
1010
<PublishRepositoryUrl>true</PublishRepositoryUrl>
11-
<Version>3.4.0</Version>
12-
<FileVersion>3.4.0</FileVersion>
11+
<Version>3.5.0</Version>
12+
<FileVersion>3.5.0</FileVersion>
1313
<AssemblyVersion>3.0.0</AssemblyVersion> <!--only update AssemblyVersion with major releases -->
1414
<LangVersion>latest</LangVersion>
1515
<EnableNETAnalyzers>true</EnableNETAnalyzers>

src/SmartFormat/Core/Parsing/Placeholder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ public string FormatterOptions
189189
if (_formatterOptionsCache != null) return _formatterOptionsCache;
190190
if (Length == 0) _formatterOptionsCache = string.Empty;
191191

192-
// The *default* max array length of ArrayPool<char>.Shared is 1,048,576.
192+
// The *default* max array length of ArrayPool<char>.Shared is 1,048,576
193+
// but renting more will still return the size we need.
193194
var pool = ArrayPool<char>.Shared;
194195
var resultBuffer = pool.Rent(Length);
195-
System.Diagnostics.Debug.Assert(resultBuffer.Length >= Length, "ArrayPool buffer size is smaller than it should be");
196196

197197
try
198198
{

0 commit comments

Comments
 (0)