diff options
author | 2022-07-02 05:13:38 +0530 | |
---|---|---|
committer | 2022-07-02 06:19:03 +0530 | |
commit | d16cc1f2c59818e53f28b4d6b4d27250331f15d7 (patch) | |
tree | 57bf4d149ec2be88dd0d351142998ce96db0d659 /src/helpers/routing-helpers.ts | |
parent | chore: correctly export/import ui elements (diff) | |
download | ferdium-app-d16cc1f2c59818e53f28b4d6b4d27250331f15d7.tar.gz ferdium-app-d16cc1f2c59818e53f28b4d6b4d27250331f15d7.tar.zst ferdium-app-d16cc1f2c59818e53f28b4d6b4d27250331f15d7.zip |
Use default exports instead of named exports
Diffstat (limited to 'src/helpers/routing-helpers.ts')
-rw-r--r-- | src/helpers/routing-helpers.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/helpers/routing-helpers.ts b/src/helpers/routing-helpers.ts index 46895aa6b..0b9a83df6 100644 --- a/src/helpers/routing-helpers.ts +++ b/src/helpers/routing-helpers.ts | |||
@@ -1,4 +1,5 @@ | |||
1 | import RouteParser from 'route-parser'; | 1 | import RouteParser from 'route-parser'; |
2 | 2 | ||
3 | export const matchRoute = (pattern: string, path: string) => | 3 | export default function matchRoute(pattern: string, path: string) { |
4 | new RouteParser(pattern).match(path); | 4 | return new RouteParser(pattern).match(path); |
5 | } | ||