mirror of
https://github.com/gchq/CyberChef.git
synced 2025-06-15 10:44:50 -04:00
Line ending sequences for the current tab are included in the deep link URL
This commit is contained in:
parent
f6ae89587c
commit
570206af77
4 changed files with 41 additions and 4 deletions
|
@ -142,6 +142,14 @@ class InputWaiter {
|
|||
this.setInput(oldInputVal);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for the input EOL sequence
|
||||
* @returns {string}
|
||||
*/
|
||||
getEOLSeq() {
|
||||
return this.inputEditorView.state.lineBreak;
|
||||
}
|
||||
|
||||
/**
|
||||
* Handler for Chr Enc change events
|
||||
* Sets the input character encoding
|
||||
|
@ -179,7 +187,7 @@ class InputWaiter {
|
|||
*/
|
||||
getInput() {
|
||||
const doc = this.inputEditorView.state.doc;
|
||||
const eol = this.inputEditorView.state.lineBreak;
|
||||
const eol = this.getEOLSeq();
|
||||
return doc.sliceString(0, doc.length, eol);
|
||||
}
|
||||
|
||||
|
@ -644,7 +652,7 @@ class InputWaiter {
|
|||
buffer: buffer,
|
||||
stringSample: stringSample,
|
||||
encoding: this.getChrEnc(),
|
||||
eolSequence: this.inputEditorView.state.lineBreak
|
||||
eolSequence: this.getEOLSeq()
|
||||
}
|
||||
}, transferable);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue