[PR #275] [MERGED] Fix DiskSize regex to accept decimals #364

Closed
opened 2026-02-28 00:41:54 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Telmate/proxmox-api-go/pull/275
Author: @Mice7R
Created: 8/22/2023
Status: Merged
Merged: 12/6/2023
Merged by: @mleone87

Base: masterHead: accept_decimal_sizes


📝 Commits (1)

  • 394604b Fix DiskSize regex to accept decimals

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 proxmox/util.go (+1 -1)

📄 Description

Size should accept decimal but the regex only accept whole numbers. This changes the regex to also detect decimal numbers like 0.2G.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Telmate/proxmox-api-go/pull/275 **Author:** [@Mice7R](https://github.com/Mice7R) **Created:** 8/22/2023 **Status:** ✅ Merged **Merged:** 12/6/2023 **Merged by:** [@mleone87](https://github.com/mleone87) **Base:** `master` ← **Head:** `accept_decimal_sizes` --- ### 📝 Commits (1) - [`394604b`](https://github.com/Telmate/proxmox-api-go/commit/394604b9e3ed815bc2415c6975ba98771b3cd36d) Fix DiskSize regex to accept decimals ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `proxmox/util.go` (+1 -1) </details> ### 📄 Description Size should accept decimal but the regex only accept whole numbers. This changes the regex to also detect decimal numbers like 0.2G. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:41:54 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmox-api-go#364
No description provided.