Skip to content

EditorConfig parsing doesn't match spec #71727

@ToddGrun

Description

@ToddGrun
  1. Per spec, the key can contain non-prefix and non-suffix spaces. Roslyn doesn't appear to allow this.
  2. Per spec, key and value are separated by '='. Roslyn appears to allow an ':' to also separate the key and value.

Both of these issues are in relation to the regex here.

Potential regex string

"^\s*([\w\.\-_]+(?:\s+[\w\.\-_]+)*)\s*=\s*(.*?)\s*$"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions