Skip to content

properties.path() not working for dot-separated keys after upgrade from 2.1.1 to 2.2.0 #58

@ms1111

Description

@ms1111

Hi, thanks for this library! I'm using it to parse Spring-like properties files.

Given a properties file with no header and a dot-separated value:

testkey.nested=testval

In 2.1.1 I used to be able to do:

const propertiesReader = require("properties-reader");
const properties = propertiesReader("test.properties");
properties.path()

This would give an object: { testkey: { nested: 'testval' } }

In 2.2.0, path() here returns: {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions