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