-
-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
bugSomething isn't workingSomething isn't working
Description
With body
aaa bbb ccc
wrap1 'http://bla.alb/add' wrap2 wrap3
�[31m�[1m>�[22m�[2m�[39m�[90m �[36mthis�[39m�[33m.�[39mextend(�[36mthis
Once enable links is on there are 3 problems:
- spaces are introduced and the third text line is seen as
this . extendrather than this.extend - content after the http link is gone (
wrap2 wrap3) - the http link itself lead to and address ending with a quote
Verified with the latest storybook as well as with the current code on main branch(150b55c)
I believe the url issue is coming from the regex here:
react-logviewer/src/components/Utils/utils.ts
Line 291 in 63c8418
| const parts = token.split(new RegExp(/(\()*([^\)]+)(\))*/)).filter(Boolean); |
The extra spaces comes from here:
| {this.props.enableLinks ? " " : null} |
uncertain what cuts off the rest of the line.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
