Oprava opravy 2

This commit is contained in:
Matyáš Caras 2022-04-05 18:17:00 +02:00
parent 7834fe3199
commit 062ae48b67
3 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View file

@ -9,3 +9,4 @@ build/
# https://dart.dev/guides/libraries/private-files#pubspeclock.
pubspec.lock
.env*
*.test.dart

View file

@ -303,9 +303,9 @@ class Canteen {
}
} else {
// jinak nastavíme URL pro burzu
var match =
RegExp(r"(?<=ajaxOrder\(this, ')(.+?)(?=').+?(do burzy)|(z burzy)")
.firstMatch(o);
var match = RegExp(
r"(?<=ajaxOrder\(this, ')(.+?)(?=').+?((do burzy)|(z burzy))")
.firstMatch(o);
if (match != null) {
burzaUrl = match.group(1)!.replaceAll("amp;", "");
}

View file

@ -1,6 +1,6 @@
name: canteenlib
description: Library for communication with the czech canteen food ordering system iCanteen
version: 0.1.0-alpha.11
version: 0.1.0-alpha.12
repository: 'https://github.com/hernikplays/canteenlib'
issue_tracker: 'https://github.com/hernikplays/canteenlib/issues'
documentation: 'https://docs.hernikplays.cz'