mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
1012dbc3c4
Document Outline Spike GitOrigin-RevId: adc315a3546147eb10c7a40ae70f9cab1cbf7b8d
12 lines
273 B
JavaScript
12 lines
273 B
JavaScript
import ExposedSettings from './exposed-settings'
|
|
|
|
const validTeXFileRegExp = new RegExp(
|
|
`\\.(${ExposedSettings.validRootDocExtensions.join('|')})$`,
|
|
'i'
|
|
)
|
|
|
|
function isValidTeXFile(filename) {
|
|
return validTeXFileRegExp.test(filename)
|
|
}
|
|
|
|
export default isValidTeXFile
|