diff --git a/.gitignore b/.gitignore index 2c6bc1b..4524dc6 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ build/ # https://dart.dev/guides/libraries/private-files#pubspeclock. pubspec.lock .env* +*.test.dart \ No newline at end of file diff --git a/lib/src/canteen.dart b/lib/src/canteen.dart index 7cb88aa..caa3cd4 100644 --- a/lib/src/canteen.dart +++ b/lib/src/canteen.dart @@ -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;", ""); } diff --git a/pubspec.yaml b/pubspec.yaml index 312cfe7..0deef85 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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'