Skip to content

Commit

Permalink
fix parsing for calories
Browse files Browse the repository at this point in the history
  • Loading branch information
rinatxp committed Mar 16, 2024
1 parent a524ba1 commit 9e2c104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Diet/Views/WebsiteFood.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private Food GetFood(string html)
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(html);

string calories = @"<span itemprop=""calories"">([\d.]+\s*кКал)<\/span>";
string calories = @"<span itemprop=""calories"">([\d.]+\s*ккал)<\/span>";
string proteins = @"<span itemprop=""proteinContent"">([\d.]+\s*г)<\/span>";
string fats = @"<span itemprop=""fatContent"">([\d.]+\s*г)<\/span>";
string carbohydrats = @"<span itemprop=""carbohydrateContent"">([\d.]+\s*г)<\/span>";
Expand Down

0 comments on commit 9e2c104

Please sign in to comment.