MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / valid_boundary

Function valid_boundary

tools/python-3.11.9-amd64/Lib/cgi.py:999–1005  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

997# =========
998
999def valid_boundary(s):
1000 import re
1001 if isinstance(s, bytes):
1002 _vb_pattern = b"^[ -~]{0,200}[!-~]$"
1003 else:
1004 _vb_pattern = "^[ -~]{0,200}[!-~]$"
1005 return re.match(_vb_pattern, s)
1006
1007# Invoke mainline
1008# ===============

Callers 1

read_multiMethod · 0.85

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected