javallone/regexper

pretty display of character classes with only one member

Closed this issue · 2 comments

I'd like to see “[no linefeed]” instead of “none of [[linefeed]]” for the RegEx [^\n], and “[" "]” (or similar) instead of “One of [[" "]]” for the regex [ ].

(Brackets stand for node frames)

-1

I prefer the general case even when there is only one character.

In the time this site has been up, I've received more than a few bugs resulting from someone having trouble reading the diagram (or misinterpreting part of it). I think adding special cases just for the sake of the diagram looking prettier may lead to more issues like those.

Also, it would make it more difficult to document the visual conventions used in the images to help people with reading them, since all of the special cases would have to be accounted for.