tedious / JShrink

Javascript Minifier built in PHP
http://www.tedivm.com
BSD 3-Clause "New" or "Revised" License
749 stars 152 forks source link

Unclosed string at position #145

Open th3-sh0w3r opened 7 months ago

th3-sh0w3r commented 7 months ago

I get "Unclosed string at position" with this valid JS code. Pls fix

$(element).append(
    '\
    <nobr>\
        <a data-title="' +
        window.getTranslation("asc_order") +
        '" href="' +
        window.location.href.split("?")[0] +
        updateQueryString({
            s: $(element).data("sort"),
            d: "ASC"
        }) +
        '" class="sort-up"><span style="color: var(--icons)" class="font-awesome-solid-ttf">&#61793;</span></a>\
        <a data-title="' +
        window.getTranslation("desc_order") +
        '" href="' +
        window.location.href.split("?")[0] +
        updateQueryString({
            s: $(element).data("sort"),
            d: "DESC"
        }) +
        '" class="sort-down"><span style="color: var(--icons)" class="font-awesome-solid-ttf">&#61792;</span></a>\
    </nobr>\
'
);