{"size": 435, "ext": "js", "max_stars_repo_path": "src/getSuptgUrl.js", "max_stars_repo_name": "Fiddlekins/suptg-quest-markup", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/getSuptgUrl.js", "max_issues_repo_name": "Fiddlekins/suptg-quest-markup", "max_issues_repo_issues_event_min_datetime": "2020-07-18T20:59:22.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-10T19:55:38.000Z", "max_forks_repo_path": "src/getSuptgUrl.js", "max_forks_repo_name": "Fiddlekins/suptg-quest-markup", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 27.1875, "max_line_length": 72, "alphanum_fraction": 0.7103448276}
const boardToUrlMap = {
	'tg': 'http://suptg.thisisnotatrueending.com/archive/{{threadId}}/',
	'qst': 'http://suptg.thisisnotatrueending.com/qstarchive/{{threadId}}/'
};

function getSuptgUrl(board, threadId) {
	const urlTemplate = boardToUrlMap[board];
	if (urlTemplate) {
		return urlTemplate.replace(/{{threadId}}/g, threadId);
	} else {
		throw new Error(`suptg doesn't support board: ${board}`);
	}
}

export default getSuptgUrl;
