-
<static> cleanPath(path)
-
Parameters:
Name |
Type |
Description |
path |
*
|
|
- Source:
-
Throws:
Error
Returns:
-
Type
-
String
-
<static> getPathSegments(path)
-
Creates an array of url path segments from a url string
Parameters:
Name |
Type |
Description |
path |
String
|
|
- Source:
-
Returns:
-
Type
-
Array
-
<static> getRegex(_path)
-
Parameters:
Name |
Type |
Description |
_path |
String
|
|
- Source:
-
Returns:
-
Type
-
Object
-
<static> isDynamicSegment(segment)
-
Evaluates whether the given segment is dynamic
Parameters:
Name |
Type |
Description |
segment |
String
|
|
- Source:
-
Returns:
-
Type
-
Boolean
-
<static> matchingSegmentsCount(segmentsA, segmentsB)
-
Enumerates the number of matching segments in the given arrays of strings
Parameters:
Name |
Type |
Description |
segmentsA |
Array
|
|
segmentsB |
Array
|
|
- Source:
-
Returns:
-
Type
-
Number
-
<static> removeLeadingSlash(str)
-
Parameters:
Name |
Type |
Description |
str |
String
|
|
- Source:
-
Returns:
-
Type
-
String
-
<static> removeTrailingSlash(str)
-
Parameters:
Name |
Type |
Description |
str |
String
|
|
- Source:
-
Returns:
-
Type
-
String