rspress-plugin-file-tree 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -139,7 +139,7 @@ function isDirectoryName(name) {
|
|
|
139
139
|
const lastPart = name.split('/').pop() || name;
|
|
140
140
|
if (/^\.{2,}$/.test(lastPart)) return false;
|
|
141
141
|
if (lastPart.startsWith('.')) return false;
|
|
142
|
-
if (/\.[a-zA-Z0-
|
|
142
|
+
if (/\.[a-zA-Z0-9_-]+$/.test(lastPart)) return false;
|
|
143
143
|
return true;
|
|
144
144
|
}
|
|
145
145
|
function getExtension(name) {
|