mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -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))
|