Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
16
node_modules/next/dist/esm/client/components/match-segments.js
generated
vendored
Normal file
16
node_modules/next/dist/esm/client/components/match-segments.js
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
export const matchSegment = (existingSegment, segment)=>{
|
||||
// segment is either Array or string
|
||||
if (typeof existingSegment === 'string') {
|
||||
if (typeof segment === 'string') {
|
||||
// Common case: segment is just a string
|
||||
return existingSegment === segment;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (typeof segment === 'string') {
|
||||
return false;
|
||||
}
|
||||
return existingSegment[0] === segment[0] && existingSegment[1] === segment[1];
|
||||
};
|
||||
|
||||
//# sourceMappingURL=match-segments.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue