Allow query params to be multiline (Closes #806)

This commit is contained in:
Gregory Schier
2018-03-26 18:14:43 -07:00
parent 59d6916903
commit 0dab74ecc0
2 changed files with 2 additions and 1 deletions

View File

@@ -351,6 +351,7 @@ class RequestPane extends React.PureComponent<Props> {
errorClassName="tall wide vertically-align font-error pad text-center">
<KeyValueEditor
sortable
allowMultiline
namePlaceholder="name"
valuePlaceholder="value"
onToggleDisable={this._trackQueryToggle}

View File

@@ -171,7 +171,7 @@ function _convertUnicode (originalStr) {
let c;
let lastI = 0;
// Matches \u####
// Matches \u#### but not \\u####
const unicodeRegex = /[^\\]\\u([0-9a-fA-F]{4})/g;
let convertedStr = '';