mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
e9b93a6ef2
Remove exposed-settings.js GitOrigin-RevId: 056526b6e5fb50c4fd8058338e894eed9a3a50f4
10 lines
230 B
JavaScript
10 lines
230 B
JavaScript
const validTeXFileRegExp = new RegExp(
|
|
`\\.(${window.ExposedSettings.validRootDocExtensions.join('|')})$`,
|
|
'i'
|
|
)
|
|
|
|
function isValidTeXFile(filename) {
|
|
return validTeXFileRegExp.test(filename)
|
|
}
|
|
|
|
export default isValidTeXFile
|