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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. 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-9]+$/.test(lastPart)) return false;
142
+ if (/\.[a-zA-Z0-9_-]+$/.test(lastPart)) return false;
143
143
  return true;
144
144
  }
145
145
  function getExtension(name) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rspress-plugin-file-tree",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Rspress plugin that add support for file tree component.",
5
5
  "files": [
6
6
  "dist"