We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bed8b60 commit 553fc2eCopy full SHA for 553fc2e
src/gha_logs.rs
@@ -338,6 +338,15 @@ body {{
338
}});
339
}}
340
341
+ // 8. Add a copy handler that force plain/text copy and removes the timestamps
342
+ // from the copied selection.
343
+ const dateRegexWithSpace = /^(\d{{4}}-\d{{2}}-\d{{2}}T\d{{2}}:\d{{2}}:\d{{2}}\.\d+Z )/gm;
344
+ document.addEventListener("copy", function(e) {{
345
+ var text = window.getSelection().toString().replace(dateRegexWithSpace, '');
346
+ e.clipboardData.setData('text/plain', text);
347
+ e.preventDefault();
348
+ }});
349
+
350
}} catch (e) {{
351
console.error(e);
352
document.body.innerText = `Something went wrong: ${{e}}\n\n{REPORT_TO}`;
0 commit comments