Skip to content

support '=' in key=value pairs #813

@kevinushey

Description

@kevinushey

Bug description

Originally from rstudio/rstudio#13634.

I believe this comes from

return lines.map(line => {
const parts = line.trim().split('=');
return [parts[0], (parts[1] || '').replace(/^"/, '').replace(/"$/, '')];
});
, where the entire line is split on =. However, because the value itself may also contain an =, this can end up truncating the retrieved value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions