Update DOMHelper.ts

This commit is contained in:
Noah 2021-10-31 15:13:30 -05:00 committed by GitHub
parent 1ed0db0c65
commit 3b38b79aac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ import { CopyFileButton, copyFileButtonClassName } from './CopyFileButton'
export function resolveMeta(): Partial<MetaData> {
const metaData = {
userName: $('[itemprop="author"] > a[rel="author"]]', e => e.textContent?.trim()),
userName: $('[itemprop="author"] > a[rel="author"]', e => e.textContent?.trim()),
repoName: $('[itemprop="name"] > a[href]', e => e.textContent?.trim()),
branchName: getCurrentBranch(true),
}