Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for ab-service-infoshkola #1209

Open
buryndin opened this issue Mar 28, 2022 · 0 comments
Open

Fix for ab-service-infoshkola #1209

buryndin opened this issue Mar 28, 2022 · 0 comments

Comments

@buryndin
Copy link

buryndin commented Mar 28, 2022

diff --git a/providers/ab-service-infoshkola/main.js b/providers/ab-service-infoshkola/main.js
index 791b374fd..c0c1499d0 100644
--- a/providers/ab-service-infoshkola/main.js
+++ b/providers/ab-service-infoshkola/main.js
@@ -49,11 +49,11 @@ function main(){
 	
     var result = {success: true};
 	
-    getParam(html, result, 'balance', /Остаток на счете:([\s\S]*?)руб/i, replaceTagsAndSpaces, parseBalance);
+    getParam(html, result, 'balance', /Итого:.*?<td>([\d\.]*)<\/td>/i, replaceTagsAndSpaces, parseBalance);
 	getParam(html, result, 'acc_type', /Тип счета:(?:[\s\S]*?<[^>]*>)([\s\S]*?)<\//i, replaceTagsAndSpaces);
 	getParam(html, result, 'dogovor', /Договор:([\s\S]*?)(?:<a|<\/p>)/i, replaceTagsAndSpaces);
 	getParam(html, result, 'fio', /Абонент:(?:[\s\S]*?<[^>]*>)([\s\S]*?)<\//i, replaceTagsAndSpaces);
     getParam(html, result, '__tariff', />\s*Тариф:([\s\S]*?)<\/span/i, replaceTagsAndSpaces);
 	
     AnyBalance.setResult(result);
-}
\ No newline at end of file
+}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant