Adding support for Indicators and Extractors

This commit is contained in:
mati108@gmail.com committed 2019-01-28 10:56:00 -03:00
1 parent f942581f58
commit a8ac7385d6
12 files changed
+325 -356

No files matched your search

+9
View File
@@ -72,3 +72,12 @@ export function slugify (string) {
.replace(/^-+/, '') // Trim - from start of text
.replace(/-+$/, '') // Trim - from end of text
}
export function getIndicatorYears () {
const localDate = new Date()
let availableYears = []
for (var i = 2015; i <= localDate.getUTCFullYear(); i++) {
availableYears[i-2015] = i
}
return availableYears
}