Merge pull request #188 from Nezteb/develop

Fix small selector typo I made in DOMHelper.ts...
This commit is contained in:
Enix 2021-11-01 10:22:15 +08:00 committed by GitHub
commit e4d3c1bfd6
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),
}