0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00
astro/.changeset/small-maps-give.md
Eric Park 3acc65444c
fix: match index files only by using entire basename (#12815)
* fix: match index files only by using entire basename

The previous code would cause file names like `index.xml.ts` to be
treated as index files, when they aren't (the file basename excluding
the extension `.ts` is `index.xml`, and `index` should be the index
file). To match index files only, match the entire first half of the
basename when splitting by the last occurrence of the period/file
extension delimiter.

Pedantically this might not be correct -- i.e. some file extensions
actually span multiple delimiters, like index.tar.gz. But in that case
it's not an index file as well, so I think this is fine.

Fixes #12675

* Add changeset
2025-01-05 19:57:53 +00:00

113 B

astro
patch

Some non-index files that were incorrectly being treated as index files are now excluded