function getRelValue(parts) {
    const m = parts.match(/\s*(.+)\s*=\s*"?([^"]+)"?/);
    if (!m) {
        return null;
    }
    return m[2];
}
Get the value of rel attribute

rel="fragment-script" -> ["rel", "fragment-script"]