File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -290,8 +290,8 @@ This lib makes no effort to handle bad/malformed UTF-8 input text.
290290The behaviour on bad input is currently undefined, and it will
291291likely result in an internal AssertionDefect or some other error.
292292
293- What can be done about this is validating the input text before
294- passing it to the match function.
293+ What can be done about this is validating the input text to avoid
294+ passing a bad input to the match function.
295295
296296.. code-block:: nim
297297 :test:
@@ -305,7 +305,7 @@ Match binary data
305305#################
306306
307307Matching on arbitrary binary data (i.e: not utf-8) is not currently supported.
308- Both the regex and the input text are assumed to be valid utf-8.
308+ Both the regex and the input text are expected to be valid utf-8.
309309The input text is treated as utf-8, and setting the regex to ASCII mode
310310won't help.
311311
You can’t perform that action at this time.
0 commit comments