function extractSuperIssueSubTaskNumbers(superIssue) {
    var matches = superIssue.body.match(markdownTasksRegex)
      , subTaskIds = [];
    _.each(matches, function(line) {
        var match = line.match(subtaskRegex);
        if (match) {
            subTaskIds.push(parseInt(match[3]));
        }
    });
    return subTaskIds;
}
function extractSuperIssueSubTaskNumbers(superIssue) {
    var matches = superIssue.body.match(markdownTasksRegex)
      , subTaskIds = [];
    _.each(matches, function(line) {
        var match = line.match(subtaskRegex);
        if (match) {
            subTaskIds.push(parseInt(match[3]));
        }
    });
    return subTaskIds;
}
function extractSuperIssueSubTaskNumbers ( superIssue ) { var matches = superIssue . body . match ( markdownTasksRegex ) , subTaskIds = [ ] ; _ . each ( matches , function ( line ) { var match = line . match ( subtaskRegex ) ; if ( match ) { subTaskIds . push ( parseInt ( match [ 3 ] ) ) ; } } ) ; return subTaskIds ; }
Using regex, finds subtasks within a super issue's body string and returns
them in an array of issue numbers.
@param superIssue
@returns {Array}
Using regex finds subtasks within a super issue s body string and returns them in an array of issue numbers .