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