Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the formatLog filter to limit the length of the value #1969

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

kovalewvladimir
Copy link

@kovalewvladimir kovalewvladimir commented Apr 24, 2024

I suggest solving the issue described in #1968 as follows.
In the formatLog filter, add a check for the length of the string.If a large string is sent to convert.toHtml(String(value)), a RangeError exception will be thrown:

vue.runtime.esm.js:1897 RangeError: Maximum call stack size exceeded
    at String.replace (<anonymous>)
    at f (ansi_to_html.js:507:17)
    at D (ansi_to_html.js:517:7)
    at e.value (ansi_to_html.js:605:7)
    at Object.formatLog (main.js:18:53)
    at TaskLogView.vue:1:1858
    at a.Nt [as _l] (vue.runtime.esm.js:2646:16)
    at a.D (TaskLogView.vue:1:1545)
    at e._render (vue.runtime.esm.js:3569:22)
    at a.r (vue.runtime.esm.js:4081:21)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant