Multiple INCLUDE_TYPOSCRIPT extensions with spaces not working
The following TypoScript snippet won't include files with anything but the first file extension:
<INCLUDE_TYPOSCRIPT: source="DIR: ./Library" extensions="ts, setupts, tx">
The reason is the space after the comma which in the end lets
TypoScriptParser::includeDirectory() (more specifically
GeneralUtility::getFilesInDir() handle them as "
setupts" and "
tx" (mind the leading space).
This should probably cleaned up with