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