mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 22:29:01 +02:00
18b2621855
GitOrigin-RevId: a68af023b24fcf87bbc608395f2898df8e9b41a5
5 lines
117 B
TypeScript
5 lines
117 B
TypeScript
const doiRe = /10\.\d{4,}\/\S+/
|
|
|
|
export const containsDOI = (text: string) =>
|
|
doiRe.test(decodeURIComponent(text))
|