Skip to content

Multiple spaces in the Regular Expression form are replaced with one space in the Configuration section #474

@yuokada

Description

@yuokada

A RE isn't reflected to the format key in the auto-generated configuration code as it is when a RE has multiple spaces like below.

Here is my regular expression. In my case, there are 2 spaces right after the regular expression for the time parameter. Those characters are omitted to one space in the Configuration section.

^(?<time>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.\d{3})Z  (?<log_level>\w+) \[(?<module>\w+)\] (?<message>.*)

e.g: https://fluentular.herokuapp.com/parse?regexp=%5E%28%3F%3Ctime%3E%5Cd%7B4%7D-%5Cd%7B2%7D-%5Cd%7B2%7D+%5Cd%7B2%7D%3A%5Cd%7B2%7D%3A%5Cd%7B2%7D.%5Cd%7B3%7D%29Z++%28%3F%3Clog_level%3E%5Cw%2B%29+%5C%5B%28%3F%3Cmodule%3E%5Cw%2B%29%5C%5D+%28%3F%3Cmessage%3E.*%29&input=2022-12-06+03%3A26%3A14.885Z++info+%5BMyApplication%5D+Starting+logging++-+%28MyApplication.java%3A100%29&time_format=%25Y-%25m-%25d+%25H%3A%25M%3A%25S.%25L

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