@umijs/route-utils
Advanced tools
Comparing version 1.0.33 to 1.0.34
@@ -0,0 +0,0 @@ import { MenuDataItem } from '../types'; |
@@ -0,0 +0,0 @@ import { stripQueryStringAndHashFromPath } from '../transformRoute/transformRoute'; |
@@ -0,0 +0,0 @@ import { MenuDataItem } from '../types'; |
@@ -17,3 +17,3 @@ import { pathToRegexp } from '@qixian.cs/path-to-regexp'; | ||
// /a/b/b | ||
if (pathToRegexp(`${pathKey}(.*)`).test(path)) { | ||
if (pathToRegexp(`${pathKey}/(.*)`).test(path)) { | ||
return true; | ||
@@ -20,0 +20,0 @@ } |
@@ -0,0 +0,0 @@ import { MenuDataItem } from './types'; |
@@ -0,0 +0,0 @@ export { default as transformRoute } from './transformRoute/transformRoute'; |
@@ -0,0 +0,0 @@ import { MenuDataItem, Route, MessageDescriptor } from '../types'; |
@@ -0,0 +0,0 @@ import isEqual from 'lodash.isequal'; |
@@ -0,0 +0,0 @@ export interface Route extends MenuDataItem { |
@@ -22,3 +22,3 @@ import { pathToRegexp } from '@qixian.cs/path-to-regexp'; | ||
if (pathToRegexp("".concat(pathKey, "(.*)")).test(path)) { | ||
if (pathToRegexp("".concat(pathKey, "/(.*)")).test(path)) { | ||
return true; | ||
@@ -25,0 +25,0 @@ } |
@@ -34,3 +34,3 @@ "use strict"; | ||
if ((0, _pathToRegexp.pathToRegexp)("".concat(pathKey, "(.*)")).test(path)) { | ||
if ((0, _pathToRegexp.pathToRegexp)("".concat(pathKey, "/(.*)")).test(path)) { | ||
return true; | ||
@@ -37,0 +37,0 @@ } |
{ | ||
"name": "@umijs/route-utils", | ||
"version": "1.0.33", | ||
"version": "1.0.34", | ||
"description": "Quickly process the routing of umi", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84387