Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 1x 9x 1x 1x 2x 2x 1x 1x 1x 2x | export function arrayStringify(data: string[]): string {
return data.map(item => `q=${encodeURIComponent(item)}`).join('&');
}
export function parseMultiple(list: Array<any>):Array<any> {
const translateMap = list.map(item => {
const text = item[0][0][0];
if(text.indexOf('<b>') > -1) {
return rmHtml(text);
}
return text;
});
return translateMap;
}
function rmHtml(value) {
return value.match(/<b>(.*?)<\/b>/g).map(item => item.match(/<b>(.*)<\/b>/)[1]).join('');
} |