sarutak commented on a change in pull request #31314:
URL: https://github.com/apache/spark/pull/31314#discussion_r564841881
##########
File path: core/src/main/resources/org/apache/spark/ui/static/stagepage.js
##########
@@ -882,7 +882,9 @@ $(document).ready(function () {
if (typeof msg === 'undefined') {
return "";
} else {
- var formHead = msg.substring(0,
msg.indexOf("at"));
+ var indexOfLineSperator =
msg.indexOf("\n");
+ var formHead = indexOfLineSperator > 0 ?
msg.substring(0, indexOfLineSperator) :
Review comment:
nit: Could you remove the trailing white space?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]