/** * Validation helpers for StoreHealthAnalyzer */ /** * Extract and validate a store number from user input. * Looks for the first sequence of 1-10 digits. * Returns a normalized string (no leading zeros issues) or null. * * @param {string} text * @returns {string|null} */ function parseStoreNumber(text) { if (!text || typeof text !== 'string') return null; // Match 1-10 digits not preceded by minus sign const match = text.trim().match(/(?