Closed ThomasTJdev closed 5 years ago
That can be a good addition to HTML-Tools via Pull Request.
Maybe it can have some const
with patterns for different levels of strictness, like:
ASCII :arrow_right: Unicode but not Emoji :arrow_right: Unicode but not weird stuff :arrow_right: Unicode unfiltered
Then you just $HtmlPatternFoo
or $HtmlPatternBar
Then we DRY, and is reusable on Nim backend code too.
Changing the min and max lengh to min
and max
is the best whatsoever and removing it from patterns.
:thinking:
Currenty we have hardcoded patterns for html where we require
{ASCII}
. This prevents me from using Danish letters such asæøå
. When I delete the pattern, I have no problem with saving the Danish letters, and they are rendered fine.Proposal:
min
andmax
)What do you think @juancarlospaco ?
Hardcoded patterns: