mirror of https://github.com/zulip/zulip.git
Fix 06-unread regex, as it no longer seems to match the count.
(imported from commit 9815772454d11c5216a162a0e0919a990670e54e)
This commit is contained in:
parent
ae6afac3ca
commit
0983840e7b
|
@ -65,7 +65,7 @@ send_with_content('Othello unread test 5');
|
|||
casper.then(function () {
|
||||
function get_sidebar() { return casper.evaluate(function () { return $("a[href='#narrow/stream/Venice']").text(); }); }
|
||||
function get_sidebar_num() {
|
||||
var match = get_sidebar().match(/\w+\((\d+)\)/);
|
||||
var match = get_sidebar().match(/\w+\s*\((\d+)\)/);
|
||||
if (match) {
|
||||
return parseInt(match[1], 10);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue