Sprint 33: end-of-sprint architecture refactor pass

This commit is contained in:
Bill
2026-02-17 11:32:51 -07:00
parent 89e0d40471
commit 6a82f4439c
5 changed files with 70 additions and 16 deletions

View File

@@ -0,0 +1,18 @@
#pragma once
// Sprint 33 refactor: shared productization validation helpers
#include <string>
inline bool hasRequiredProductIds(const std::string& a, const std::string& b) {
return !a.empty() && !b.empty();
}
inline bool isValidHexColor7(const std::string& c) {
if (c.size() != 7 || c[0] != '#') return false;
for (size_t i = 1; i < c.size(); ++i) {
const char x = c[i];
const bool hex = (x >= '0' && x <= '9') || (x >= 'a' && x <= 'f') || (x >= 'A' && x <= 'F');
if (!hex) return false;
}
return true;
}