Skip to content

"http" in URLs should not be captured as keys #1

@ashaw

Description

@ashaw

Currently,

noturls: value
urls:
http://foo.com
http://bar.com
:end

is parsed as

{
  "noturls": "value",
  "urls": "",
  "http": "//bar.com"
}

Desired result is:

{
  "noturls": "value",
  "urls": "http://foo.com\nhttp://bar.com"
}

I realize you can quote the URLs to escape them, but maybe the START_KEY regex should be changed to forbid "//" after a colon so file patterns are not captured as keys, since it's such a common usage. Just a thought.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions