mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-09 01:11:26 +00:00
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
|