hapipal / confidence

Dynamic, declarative configurations
Other
263 stars 43 forks source link

Attributes containing special characters #34

Closed jedireza closed 9 years ago

jedireza commented 9 years ago

Let's say we have a json document such as:

{
    "things": {
        "sub-thing": "space race"
    }
}

I'm getting undefined when calling conf.get('/things/sub-thing').

I've tried a handful of escaping attempts. I also quickly scanned the lib but didn't grok anything that seemed relevant to my goal. I also didn't notice any test cases with special characters.

patrickkettner commented 9 years ago

Hiya @jedireza!

From the readme...

key names can only contain alphanumeric characters and '_' with the '$' prefix reserved for special directives

Sorry about that!

jedireza commented 9 years ago

Thanks for the reply @patrickkettner