almost work it

This commit is contained in:
Leifer Mendez
2022-11-22 21:45:00 +01:00
parent c40c0c54bd
commit 368bf29e63
4 changed files with 52 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
const { toSerialize } = require('./methods')
const { toSerialize } = require('./methods/toSerialize')
class FlowClass {
allCallbacks = []
@@ -20,16 +20,13 @@ class FlowClass {
this.flowSerialize = toSerialize(mergeToJsonSerialize)
}
find = (keyOrWord, symbol = false) => {
find = (keyOrWord, symbol = false, overFlow = null) => {
let capture = false
let messages = []
let refSymbol = null
overFlow = overFlow ?? this.flowSerialize
const findIn = (
keyOrWord,
symbol = false,
flow = this.flowSerialize
) => {
const findIn = (keyOrWord, symbol = false, flow = overFlow) => {
capture = refSymbol?.options?.capture || false
if (capture) return messages