mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 06:35:13 -05:00
aa480a2663
[web] migrate from window attributes to getMeta GitOrigin-RevId: 3dcf1ab6b01155e5e4abeb3e78d0fa9053e055bc
12 lines
281 B
JavaScript
12 lines
281 B
JavaScript
import getMeta from '@/utils/meta'
|
|
|
|
function isValidTeXFile(filename) {
|
|
const validTeXFileRegExp = new RegExp(
|
|
`\\.(${getMeta('ol-ExposedSettings').validRootDocExtensions.join('|')})$`,
|
|
'i'
|
|
)
|
|
|
|
return validTeXFileRegExp.test(filename)
|
|
}
|
|
|
|
export default isValidTeXFile
|