dumi 2.0.0-rc.13 → 2.0.0-rc.14

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.
@@ -223,7 +223,8 @@ export var useSidebarData = function useSidebarData() {
223
223
  // /a/b => /a
224
224
  // /en-US/a => /en-US/a
225
225
  // /en-US/a/b => /en-US/a
226
+ // /en-US/a/b/ => /en-US/a (also strip trailing /)
226
227
 
227
- var parentPath = clearPath ? pathname.replace(/(\/[^/]+)(\/[^/]+)$/, '$1') : pathname;
228
+ var parentPath = clearPath ? pathname.replace(/(\/[^/]+)(\/[^/]+\/?)$/, '$1') : pathname;
228
229
  return parentPath ? sidebar[parentPath] : [];
229
230
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dumi",
3
- "version": "2.0.0-rc.13",
3
+ "version": "2.0.0-rc.14",
4
4
  "description": "Framework for developing UI components",
5
5
  "keywords": [],
6
6
  "license": "MIT",