Skip to content

More strict regex #75

@EdwinKM

Description

@EdwinKM

The plugin breaks when entering text with multiple plusses. For example, the openssl tool will create lines like:
...................................................................................+++++

We can
fold.txt
improve the regex:

  • Should only start with a "+"
  • Should be exactly be 4 plusses.
  • Newline required after the 4 plusses.

Was toying with something like:
'^+{4}[^+].|(?=.++++$)

But it breaks also. Not sure to part after the pipe (not sure what a "line" is for dokuwiki).
Example file included.

Note: Strict settings can potentially break if users did not exactly followed the syntax.

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