mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
5 lines
141 B
JavaScript
5 lines
141 B
JavaScript
|
const documentClassRe = /^[^%]*\\documentclass/
|
||
|
|
||
|
export const isMainFile = doc =>
|
||
|
doc.split('\n').some(line => documentClassRe.test(line))
|