From 1db2eed43098b17c51f701edf53edcee1628e334 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sat, 27 Apr 2024 18:35:54 +0200 Subject: [PATCH] Bug parsing item.pug --- src/pug/item.pug | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/pug/item.pug b/src/pug/item.pug index 4e76a49..e396182 100644 --- a/src/pug/item.pug +++ b/src/pug/item.pug @@ -1,10 +1,12 @@ mixin parseValue(value, level) - if typeof value === 'string' - if value.substr(0,8) === 'https://' || value.substr(0,7) === 'http://' - td - a(href=value, target='_blank')=value - else - td=value + if typeof value === 'string' + if value.substr(0,8) === 'https://' || value.substr(0,7) === 'http://' + td + a(href=value, target='_blank')=value + else + td=value + else if typeof value === 'string' || typeof value === 'number' + td=value else if Array.isArray(value) if value.length > 0