overleaf/services/web/frontend/js/main/is-valid-tex-file.js
Alf Eaton e9b93a6ef2 Merge pull request #3979 from overleaf/ae-exposed-settings
Remove exposed-settings.js

GitOrigin-RevId: 056526b6e5fb50c4fd8058338e894eed9a3a50f4
2021-05-05 02:10:00 +00:00

10 lines
230 B
JavaScript

const validTeXFileRegExp = new RegExp(
`\\.(${window.ExposedSettings.validRootDocExtensions.join('|')})$`,
'i'
)
function isValidTeXFile(filename) {
return validTeXFileRegExp.test(filename)
}
export default isValidTeXFile