adding test fixtures so that we can run tests 'offline'

This commit is contained in:
orangecoding
2026-04-21 13:37:00 +02:00
parent 64d0515c79
commit 8c5607e20b
27 changed files with 58632 additions and 79 deletions

View File

@@ -10,7 +10,7 @@
* @returns {number|null}
*/
export const extractNumber = (str) => {
if (str == null) return null;
if (str == null) return 0;
if (typeof str === 'number') return str;
const cleaned = str.replace(/\./g, '').replace(',', '.');
const num = parseFloat(cleaned);