mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -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;
|
||||
} // shouldn't really happen
|
||||
|
||||
if (mode !== 'start' && mode !== 'start-sql') {
|
||||
if (mode !== 'start') {
|
||||
return MODE.IN_REQUEST;
|
||||
}
|
||||
let line = (session.getLine(row) || '').trim();
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
|
||||
import _ from 'lodash';
|
||||
|
||||
const pipe = _.flow;
|
||||
|
||||
const utils = {};
|
||||
|
||||
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.
|
||||
const collapseXLangMarkers = text => text.replace(`"""sql`, `"""`);
|
||||
|
||||
utils.collapseLiteralStrings = _.pipe(
|
||||
utils.collapseLiteralStrings = pipe(
|
||||
collapseXLangMarkers,
|
||||
function (data) {
|
||||
const splitData = data.split(`"""`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue