mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 21:31:36 +02:00
13 lines
273 B
JavaScript
13 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
|