unstructured icon indicating copy to clipboard operation
unstructured copied to clipboard

fix: use raw strings for regex patterns

Open scanny opened this issue 1 year ago • 0 comments

Summary Avoid SyntaxWarning and/or SyntaxError messages when importing unstructured.nlp.patterns by using raw strings ("r" prefix) for regex patterns which may contain \x character sequences not recognized by the Python parser for normal strings.

Fixes: #2495

scanny avatar May 15 '24 21:05 scanny