working on code breakup
Build and Push Image / build-and-push (push) Failing after 21s

This commit is contained in:
2026-05-02 23:29:32 -07:00
parent 749fe95903
commit b39fc6e7db
6 changed files with 103 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import config from './config.js';
export function validateData(data) {
let isValid = true;
for (const key in data) {
if (config.dataValidationRules[key]) {
const regex = config.dataValidationRules[key];
if (!regex.test(data[key])) {
console.warn(`Invalid value for ${key}: ${data[key]}`);
isValid = false;
}
}
}
return isValid;
}