ProcessStackTrace() Creates Many Nested Spans

Description

When `processStackTrace()` gets executed in Bootstrap.cfc, it parses the raw stack trace into friendly HTML suitable for output (like in Whoops.cfm).

However, there appears to be a side effect of the regex/match/replace operation that creates many nested spans within the final HTML. The result winds up looking something like this:
https://i.imgur.com/q3ZMMVc.png

Additionally, the regular expression which is designed to wrap method calls in `<span class="method">` creates odd HTML which makes the "highlight" class only apply to the opening parentheses. See the following example:
https://i.imgur.com/VNxac90.png

I believe the issues can be fixed by replacing the `processStackTrace()` method with the following:

The above solution changes the way various patterns within the stack trace are wrapped in <span> tags. I am no expert when it comes to regular expressions, so there might be a more elegant way of solving this problem.

Assignee

Luis Majano

Reporter

David Levin

Labels

None

Components

Fix versions

Priority

Minor
Configure