mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Bib Editor: the initial commit
This commit is contained in:
@@ -21,7 +21,7 @@ export function generateBaseCitationKey({
|
||||
}): string {
|
||||
const firstAuthor = authors.names[0]
|
||||
if (!firstAuthor) return ''
|
||||
const surname = firstAuthor.toLast().replace(/[^A-Za-z0-9]/g, '')
|
||||
const surname = firstAuthor.toLast().replace(/[^\p{L}\p{N}]/gu, '')
|
||||
if (!surname) return ''
|
||||
if (!YEAR_REGEX.test(year.trim())) return ''
|
||||
return surname + year.trim()
|
||||
|
||||
@@ -254,7 +254,7 @@ export const SettingsModalProvider: FC<React.PropsWithChildren> = ({
|
||||
},
|
||||
{
|
||||
key: 'write-and-cite-settings',
|
||||
component: <ReferenceSearchSetting />,
|
||||
component: ReferenceSearchSetting ? <ReferenceSearchSetting /> : null,
|
||||
hidden: !ReferenceSearchSetting,
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user