mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
- Remove 'start-sql'
- no flow :c
This commit is contained in:
parent
f019616675
commit
2d585eef17
2 changed files with 4 additions and 2 deletions
|
@ -48,7 +48,7 @@ function RowParser(editor) {
|
||||||
return MODE.BETWEEN_REQUESTS;
|
return MODE.BETWEEN_REQUESTS;
|
||||||
} // shouldn't really happen
|
} // shouldn't really happen
|
||||||
|
|
||||||
if (mode !== 'start' && mode !== 'start-sql') {
|
if (mode !== 'start') {
|
||||||
return MODE.IN_REQUEST;
|
return MODE.IN_REQUEST;
|
||||||
}
|
}
|
||||||
let line = (session.getLine(row) || '').trim();
|
let line = (session.getLine(row) || '').trim();
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
|
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
|
|
||||||
|
const pipe = _.flow;
|
||||||
|
|
||||||
const utils = {};
|
const utils = {};
|
||||||
|
|
||||||
utils.textFromRequest = function (request) {
|
utils.textFromRequest = function (request) {
|
||||||
|
@ -62,7 +64,7 @@ utils.reformatData = function (data, indent) {
|
||||||
// this operation can probably bundle A -> B with the B -> A functionality.
|
// this operation can probably bundle A -> B with the B -> A functionality.
|
||||||
const collapseXLangMarkers = text => text.replace(`"""sql`, `"""`);
|
const collapseXLangMarkers = text => text.replace(`"""sql`, `"""`);
|
||||||
|
|
||||||
utils.collapseLiteralStrings = _.pipe(
|
utils.collapseLiteralStrings = pipe(
|
||||||
collapseXLangMarkers,
|
collapseXLangMarkers,
|
||||||
function (data) {
|
function (data) {
|
||||||
const splitData = data.split(`"""`);
|
const splitData = data.split(`"""`);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue