mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-24 21:12:38 -04: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))
|