mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 05:42:15 -05:00
f27562eb12
- Importing SettingsController from the angular code, which enables post requests for every select menu and socket handler for compiler, texlive version, and main document select option - New context for the data handling infrastructure between react and angular. The data is still located in the angular version, and I use the context only as a proxy to fetch/post new data. GitOrigin-RevId: 59009bceb128d82969a2318e90036aacf79f9887
10 lines
238 B
JavaScript
10 lines
238 B
JavaScript
function isValidTeXFile(filename) {
|
|
const validTeXFileRegExp = new RegExp(
|
|
`\\.(${window.ExposedSettings.validRootDocExtensions.join('|')})$`,
|
|
'i'
|
|
)
|
|
|
|
return validTeXFileRegExp.test(filename)
|
|
}
|
|
|
|
export default isValidTeXFile
|