Skip to content

Commit 775a9d8

Browse files
Copilotfregante
andauthored
Revert intentionally broken selector for demonstration
Reverted 'meta[name="user-login"] >' back to 'meta[name="user-login"]' The demonstration successfully showed TypeScript catching invalid selectors. Agent-Logs-Url: https://github.com/refined-github/github-url-detection/sessions/5f1f9b48-fa3e-4c7f-8497-a090583344e8 Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
1 parent 00b5c9b commit 775a9d8

File tree

2 files changed

+1
-78
lines changed

2 files changed

+1
-78
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ TEST: addTests('isNewRepoTemplate', [
875875
]);
876876

877877
/** Get the logged-in user’s username */
878-
const getLoggedInUser = (): string | undefined => $('meta[name="user-login"] >')?.getAttribute('content') ?? undefined;
878+
const getLoggedInUser = (): string | undefined => $('meta[name="user-login"]')?.getAttribute('content') ?? undefined;
879879

880880
/** Drop all redundant slashes */
881881
const getCleanPathname = (url: URL | HTMLAnchorElement | Location = location): string => url.pathname.replaceAll(/\/\/+/g, '/').replace(/\/$/, '').slice(1);

package-lock.json

Lines changed: 0 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)