bbs-reader.js
function splitLabel(text) {
    var label = "", right = "";
    var i = text.lastIndexOf(":");
    if (i >= 0) {
        right = text.substr(i + 1).trim();
        if (right) {
            text = text.substr(0, i);
            
            i = text.lastIndexOf(" ");
            if (i >= 0) {
                label = text.substr(i + 1);
                if (label) {
                    text = text.substr(0, i);
                }
            }
        }
    }
    return [text, label, right];
}
function splitLabel(text) {
    var label = "", right = "";
    var i = text.lastIndexOf(":");
    if (i >= 0) {
        right = text.substr(i + 1).trim();
        if (right) {
            text = text.substr(0, i);
            
            i = text.lastIndexOf(" ");
            if (i >= 0) {
                label = text.substr(i + 1);
                if (label) {
                    text = text.substr(0, i);
                }
            }
        }
    }
    return [text, label, right];
}
function splitLabel ( text ) { var label = "" , right = "" ; var i = text . lastIndexOf ( ":" ) ; if ( i >= 0 ) { right = text . substr ( i + 1 ) . trim ( ) ; if ( right ) { text = text . substr ( 0 , i ) ; i = text . lastIndexOf ( " " ) ; if ( i >= 0 ) { label = text . substr ( i + 1 ) ; if ( label ) { text = text . substr ( 0 , i ) ; } } } } return [ text , label , right ] ; }
Split right label
Split right label