Skip to content

Optional delimiter #3

Closed
wants to merge 2 commits into from

2 participants

@hyperthunk

This patch adds support for using alternative delimiters in the path, which is pretty useful if you're navigating elements that contain a dot character which would normally fail.

hyperthunk added some commits Feb 2, 2012
@hyperthunk hyperthunk merge upstream ef5a67b
@hyperthunk hyperthunk Add support for alternative path delimiters
This patch adds support for using alternative delimiters in the *path*,
which is pretty useful if you're navigating elements that contain a dot
character which would normally fail.
9199a4a
@etrepum
Owner
etrepum commented May 20, 2014

Well this is embarrassingly old :(

The best solution to this issue is to pass in the path as a list of keys, if you have a domain specific separator you can handle it any way you want (even if you need to deal with a more complicated parse than just splitting):

kvc:path(
    [repositories, 'github.com', api],
    [{repositories,[{"github.com", [{api,scm}]}]}]).
@etrepum etrepum closed this May 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.