Skip to content

Commit

Permalink
doc-fix(ansi-escape): escape quotes for html tooltips in wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
EagleoutIce committed Oct 12, 2024
1 parent 16ce2ce commit 2e9c567
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 29 deletions.
3 changes: 1 addition & 2 deletions src/util/ansi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ export const markdownFormatter: OutputFormatter = new class implements OutputFor
}
}

input = input.replaceAll(/\\/g, '\\\\');
let source = input.replaceAll(/\n/g, '\\\n');
let source = input.replaceAll(/\\"/g, '\'').replaceAll(/\\/g, '\\\\').replaceAll(/\n/g, '\\\n');
/* repeatedly replace all spaces but only at the beginning of a line */
let target = source;
do{
Expand Down
Loading

2 comments on commit 2e9c567

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"artificial" Benchmark Suite

Benchmark suite Current: 2e9c567 Previous: 9d8b361 Ratio
Retrieve AST from R code 233.62878359090908 ms (97.05567497767206) 238.12351204545453 ms (103.59720843756357) 0.98
Normalize R AST 18.125709636363638 ms (29.80246976256475) 19.968034227272728 ms (34.84298543847825) 0.91
Produce dataflow information 39.278155590909094 ms (82.9025402566258) 38.310942090909094 ms (82.04448044777155) 1.03
Total per-file 809.4166711818182 ms (1443.3681902819235) 811.1703915909092 ms (1431.4404310276739) 1.00
Static slicing 2.2827660243228527 ms (1.5208670127802306) 2.258090287874194 ms (1.2792808105316449) 1.01
Reconstruct code 0.2398358414936969 ms (0.1926500650783643) 0.22489327849282828 ms (0.17585774592637268) 1.07
Total per-slice 2.538042360544691 ms (1.5924235106209244) 2.4996261233332735 ms (1.3278746913052974) 1.02
failed to reconstruct/re-parse 0 # 0 # 1
times hit threshold 0 # 0 # 1
reduction (characters) 0.7869360165281424 # 0.7869360165281424 # 1
reduction (normalized tokens) 0.7639690077689504 # 0.7639690077689504 # 1
memory (df-graph) 95.46617542613636 KiB (244.77619956879823) 147.42458274147728 KiB (358.6827375397903) 0.65

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"social-science" Benchmark Suite

Benchmark suite Current: 2e9c567 Previous: 9d8b361 Ratio
Retrieve AST from R code 236.91550066 ms (43.48656803471621) 238.40722376 ms (42.95412443307438) 0.99
Normalize R AST 20.46834784 ms (15.277194762445943) 22.0872248 ms (17.016890594916376) 0.93
Produce dataflow information 75.29743714 ms (88.47525819713728) 74.60461736 ms (88.95210983454488) 1.01
Total per-file 7633.58151008 ms (28521.709721649757) 11091.201449639999 ms (52310.41942604725) 0.69
Static slicing 15.892498725938868 ms (43.62236196158756) 22.047137876062838 ms (78.30877993604865) 0.72
Reconstruct code 0.23451998388575973 ms (0.14554372375704192) 0.2327517832436913 ms (0.14954480815603388) 1.01
Total per-slice 16.134763919175132 ms (43.64460528509811) 22.287796325154986 ms (78.33211951742135) 0.72
failed to reconstruct/re-parse 0 # 0 # 1
times hit threshold 0 # 0 # 1
reduction (characters) 0.8712997340230448 # 0.8719618340615195 # 1.00
reduction (normalized tokens) 0.8102441553774778 # 0.810633662275233 # 1.00
memory (df-graph) 99.8990234375 KiB (113.72812769327498) 145.6434765625 KiB (153.49028997815503) 0.69

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.