-
Maybe I'm not using it right (I'm new to it), but when the name of the competitor is not capitalized, it doesn't recognize it as a competitor. For example: I enter "youtube" as a competitor, and when I'm validating, it only recognizes "Youtube". Another thing I'm trying to do is redact the name of the competitor from the input string, but neither "fix", "filter" nor "refrain" works. "Fix" just erases the whole String, while "Filter" and "Refrain" sets the String as "None". Anyways, thank you guys! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hi @damtrovao could we get an example code snippet to help reproduce the issue? |
Beta Was this translation helpful? Give feedback.
With the
on_fail="filter"
you will getstr.validated_output
isNone
because the output is totally filtered.With
on_fail="fix"
you will getstr.validated_output
omits the sentence that the validator failed on. For example if the validatedstr="apply at youtube or email me at my email. This is another sentence."
then thestr.validated_output
will bethis is another sentence.
We will have updated documentation on this in our next release of 0.5.3 which I'll update this thread with in the next few days.