Oprava
This commit is contained in:
parent
e916196f8b
commit
d7d51cfc7f
3 changed files with 11 additions and 7 deletions
|
@ -1,5 +1,8 @@
|
|||
## 0.1.0-alpha.10
|
||||
- Doufám, že skutečně opraví získávání URL
|
||||
- Lepší formátování názvu
|
||||
## 0.1.0-alpha.9
|
||||
- Opravit opravu
|
||||
- Vzít změny zpět
|
||||
## 0.1.0-alpha.8
|
||||
- Opravit získávání URL z burzy v `jidelnicekDen`
|
||||
- tridy.dart - Burza: ~~jidlo~~ --> __nazev__
|
||||
|
|
|
@ -260,11 +260,10 @@ class Canteen {
|
|||
.group(0)
|
||||
.toString());
|
||||
var jidla = <Jidlo>[];
|
||||
var jidelnicek = RegExp(
|
||||
r'((?<=<div class="jidWrapLeft">).+?((?=<br>)|(do burzy)))',
|
||||
dotAll: true)
|
||||
.allMatches(res)
|
||||
.toList();
|
||||
var jidelnicek =
|
||||
RegExp(r'(?<=<div class="jidWrapLeft">).+?((fa-clock))', dotAll: true)
|
||||
.allMatches(res)
|
||||
.toList();
|
||||
for (var obed in jidelnicek) {
|
||||
// formátování do třídy
|
||||
var o = obed
|
||||
|
@ -286,6 +285,8 @@ class Canteen {
|
|||
.firstMatch(o)!
|
||||
.group(0)
|
||||
.toString()
|
||||
.replaceAll(' ,', ",")
|
||||
.replaceAll(" <br>", "")
|
||||
.split(" / ");
|
||||
var vydejna = RegExp(
|
||||
r'(?<=<span class="smallBoldTitle button-link-align">).+?(?=<)')
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: canteenlib
|
||||
description: Library for communication with the czech canteen food ordering system iCanteen
|
||||
version: 0.1.0-alpha.9
|
||||
version: 0.1.0-alpha.10
|
||||
repository: 'https://github.com/hernikplays/canteenlib'
|
||||
issue_tracker: 'https://github.com/hernikplays/canteenlib/issues'
|
||||
documentation: 'https://docs.hernikplays.cz'
|
||||
|
|
Reference in a new issue