From 90552dbb752637bfecfb9cd9600fc9e45c4b8d88 Mon Sep 17 00:00:00 2001 From: Smit Shah Date: Tue, 10 Dec 2024 19:52:57 +0530 Subject: [PATCH] code updated for rel --- scripts/scripts.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/scripts.js b/scripts/scripts.js index 7d1df33e5..2d70b1283 100644 --- a/scripts/scripts.js +++ b/scripts/scripts.js @@ -1256,12 +1256,9 @@ export function groupAllKeys(array) { // Helper functions const handleRel = (anchor, hrefSplit) => { - if (hrefSplit.includes(',')) { - const rels = hrefSplit.split(','); - rels.forEach(function (eachRel) { - debugger - anchor.rel += `${eachRel.trim()}`; - }); + if (hrefSplit.includes('@')) { + const rels = hrefSplit.split('@'); + anchor.rel = rels.join(' '); } else { anchor.rel = hrefSplit; }