mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-05 02:41:41 -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))
|