function updateYear(string) {
		return string.replace(/(\$\{year(-1)?\})/g, function(str) {
			return {
				"${year}": year,
				"${year-1}": year - 1
			}[str];
		});
	}
This data was manually extracted from the pages listed on
https://help.github.com/categories/search/