fluentular icon indicating copy to clipboard operation
fluentular copied to clipboard

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

Open yuokada opened this issue 3 years ago • 1 comments

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

yuokada avatar Dec 09 '22 07:12 yuokada

I guess this issue is related to html rendering or is a CSS side issue. The fluentd configuration is rendered with HTML tags. Because of it, multiple spaces are replaced with one space character.

yuokada avatar Dec 09 '22 11:12 yuokada