From fbe3fd61495d92a826714a4ae56b35a2d5945f71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maty=C3=A1=C5=A1=20Caras?= Date: Tue, 5 Apr 2022 18:05:50 +0200 Subject: [PATCH] =?UTF-8?q?Zapomn=C4=9Bl=20jsem=20na=20j=C3=ADdlo=20z=20bu?= =?UTF-8?q?rzy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/canteen.dart | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/src/canteen.dart b/lib/src/canteen.dart index e0b1ad0..7cb88aa 100644 --- a/lib/src/canteen.dart +++ b/lib/src/canteen.dart @@ -303,8 +303,9 @@ class Canteen { } } else { // jinak nastavíme URL pro burzu - var match = RegExp(r"(?<=ajaxOrder\(this, ')(.+?)(?=').+?do burzy") - .firstMatch(o); + var match = + RegExp(r"(?<=ajaxOrder\(this, ')(.+?)(?=').+?(do burzy)|(z burzy)") + .firstMatch(o); if (match != null) { burzaUrl = match.group(1)!.replaceAll("amp;", ""); } @@ -367,8 +368,9 @@ class Canteen { } } else { // jinak nastavíme URL pro burzu - var match = RegExp(r"(?<=ajaxOrder\(this, ')(.+?)(?=').+?do burzy") - .firstMatch(novy); + var match = + RegExp(r"(?<=ajaxOrder\(this, ')(.+?)(?=').+?(do burzy)|(z burzy)") + .firstMatch(novy); if (match != null) { burzaUrl = match.group(1)!.replaceAll("amp;", ""); } @@ -426,8 +428,9 @@ class Canteen { } } else { // jinak nastavíme URL pro burzu - var match = RegExp(r"(?<=ajaxOrder\(this, ')(.+?)(?=').+?do burzy") - .firstMatch(novy); + var match = + RegExp(r"(?<=ajaxOrder\(this, ')(.+?)(?=').+?(do burzy)|(z burzy)") + .firstMatch(novy); if (match != null) { burzaUrl = match.group(1)!.replaceAll("amp;", ""); }