Reference
get map
        On this page
        
    
    
Test whether an input matches an entry in a map file.
Description Jump to heading
This command returns a result that indicates whether an input matches an entry in a map file. This is useful for debugging maps.
Examples Jump to heading
Pass the map ID and an input string to get map to test whether the string matches any keys.
nix
nix
Assume we have this map file:
Test whether the input string /reviews/war-and-peace/1 matches any keys:
nix
nix
outputtext
outputtext
The result indicates that a match was found using the type beg, which means begins with. It matched the key /reviews/.
See also Jump to heading
Do you have any suggestions on how we can improve the content of this page?