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