Open buryndin opened 2 years ago
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 +}