mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-11 19:27:11 -05:00
73bc3418a2
GitOrigin-RevId: fcc88a362c3e97c9fddf85d47c3a83a0a0b89432
4 lines
141 B
JavaScript
4 lines
141 B
JavaScript
const documentClassRe = /^[^%]*\\documentclass/
|
|
|
|
export const isMainFile = doc =>
|
|
doc.split('\n').some(line => documentClassRe.test(line))
|