- Notifications
You must be signed in to change notification settings - Fork670
Apply markdown engine to result provider#232
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This pull requestintroduces 3 alerts when merging4bb9018 intobcafa92 -view on LGTM.com new alerts:
Comment posted byLGTM.com |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
return `<!DOCTYPE html> | ||
<html lang="en"> | ||
private parseResult(raw: string): IResult { | ||
raw = raw.concat(" √ "); // Append a dummy sentinel to the end of raw string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
What will happen if we don't append√
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
The RegEx captures anything in between two √
. If we don't append it, the last section (normallystdout
) won't be captured.
Worth to note that, with this trick, messages like[WARN] Failed to get memory percentile
will be captured as one part ofYour runtime beats 81.3 % of python submissions
, and will also be printed out even it does not starts with √
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Hmm... still feeling the logic here is too tricky for maintaince.
It's ok to merge for now.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Introduction
Solving#216 (comment)
Demonstration