Skip to content

Commit

Permalink
Trying to keep it consistant.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaben committed Feb 19, 2025
1 parent 961530e commit 70063f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Domain/Pages/PageRanges.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

using System.Globalization;
using System.Text.RegularExpressions;

namespace Gotenberg.Sharp.API.Client.Domain.Pages;
Expand Down Expand Up @@ -92,12 +93,12 @@ private string GetPageRangeString()
}
else
{
ranges.Add(start == end ? start.ToString() : $"{start}-{end}");
ranges.Add(start == end ? start.ToString(CultureInfo.InvariantCulture) : $"{start}-{end}");
start = end = page;
}
}

ranges.Add(start == end ? start.ToString() : $"{start}-{end}");
ranges.Add(start == end ? start.ToString(CultureInfo.InvariantCulture) : $"{start}-{end}");
return string.Join(", ", ranges);
}

Expand Down

0 comments on commit 70063f5

Please sign in to comment.