#10 fix strony źle linkują jeśli URL kończy się przecinkiem

This commit is contained in:
Avris 2020-07-24 20:29:27 +02:00
parent 6565fa18c0
commit 1f4b22f265
1 changed files with 4 additions and 0 deletions

View File

@ -180,6 +180,10 @@ export class Template {
}
static from(data) {
if (data.length === morphemes.length + 1) {
data.push('');
}
if (data.length !== morphemes.length + 2
|| data[0].length === 0
|| data[data.length - 1].length > 48