Spaces:
Sleeping
Sleeping
Update index.html
Browse files- index.html +1 -1
index.html
CHANGED
@@ -77,7 +77,7 @@
|
|
77 |
|
78 |
function analyzeNutrition(text) {
|
79 |
// Extract nutritional values (assuming sugar content is labeled as '당류' in Korean)
|
80 |
-
const regex =
|
81 |
const match = text.match(regex);
|
82 |
let outputDiv = document.getElementById('output');
|
83 |
|
|
|
77 |
|
78 |
function analyzeNutrition(text) {
|
79 |
// Extract nutritional values (assuming sugar content is labeled as '당류' in Korean)
|
80 |
+
const regex = /당류\s*:\s*(\d+(\.\d+)?)\s*g\s*/; // This regex might need adjustments based on label format
|
81 |
const match = text.match(regex);
|
82 |
let outputDiv = document.getElementById('output');
|
83 |
|