Skip to content

input fails to extract lines with custom delimiter #278

Open
@kares

Description

@kares

when a custom delimiter is used instead of "\n" e.g. delimiter => "</Some>" (assuming "multi-line" content in a single line),
the plugin fails to properly split lines - this mostly happens when the plugin manages to buffer up more than one "line":
"<Some><Content1>...</Content1></Some> <Some><Content2>...</Content2>"

and boils down to:

>> line = "<Some><Content1>...</Content1></Some> <Some><Content2>...</Content2>"
>> tokenizer = FileWatch::BufferedTokenizer.new("</Some>")

>> tokenizer.extract(line)
=> ["<Some><Content1>...</Content1>"]
>> tokenizer.extract(line)
=> [" <Some><Content2>...</Content2><Some><Content1>...</Content1>"]

which ends not extracting the 2 lines properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions