Added teaser support. Added Score network with scraper for Scoreland. Improved q. Added assets.

This commit is contained in:
2020-02-02 05:14:58 +01:00
parent 14e5695b6e
commit a97c6defca
52 changed files with 4291 additions and 3435 deletions

View File

@@ -1,7 +1,7 @@
'use strict';
function slugify(string, encode = false) {
const slug = string.trim().toLowerCase().match(/\w+/g).join('-');
function slugify(string, encode = false, delimiter = '-') {
const slug = string.trim().toLowerCase().match(/\w+/g).join(delimiter);
return encode ? encodeURI(slug) : slug;
}