Skip to content

Commit 806243e

Browse files
authored
Update dependencies, output modern code (#181)
1 parent a34106b commit 806243e

File tree

5 files changed

+2226
-1650
lines changed

5 files changed

+2226
-1650
lines changed

demo/Detections.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
{:else}
2323
<pre><code>
2424
{#each urls as url}
25-
<a href="/?url={encodeURIComponent(url)}">{url}</a><br>
25+
<a href="./?url={encodeURIComponent(url)}">{url}</a><br>
2626
{/each}
2727
</code></pre>
2828
{/if}

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ addTests('isNewRepoTemplate', [
744744
const getUsername = (): string | undefined => $('meta[name="user-login"]')?.getAttribute('content')!;
745745

746746
/** Drop all duplicate slashes */
747-
const getCleanPathname = (url: URL | HTMLAnchorElement | Location = location): string => url.pathname.replace(/\/+/g, '/').slice(1, url.pathname.endsWith('/') ? -1 : undefined);
747+
const getCleanPathname = (url: URL | HTMLAnchorElement | Location = location): string => url.pathname.replaceAll(/\/+/g, '/').slice(1, url.pathname.endsWith('/') ? -1 : undefined);
748748

749749
const getCleanGistPathname = (url: URL | HTMLAnchorElement | Location = location): string | undefined => {
750750
const pathname = getCleanPathname(url);

0 commit comments

Comments
 (0)