diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2023-06-28 12:41:54 +0200 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2023-06-28 12:48:22 +0200 |
commit | ae3f83b3c30d7ab931a20986c9b72ec3f4918def (patch) | |
tree | 4db0be369330cee6524dd175e3d1bb6918db9a7c /ogcp/templates/actions/repos_details.html | |
parent | d9f8c9561823daf234e2348b5ea0db2e92d29216 (diff) |
views: use \s to match whitespace in client import regex
Some programs substitute regular space characters (\u0020) by en spaces
(\u2002) when displaying monospace text. Others replace it by
non-breaking spaces.
Using a character set such as [ \t\n] to match any possible "space
related" character. Use \s to match any kind of whitespace related
character in the regex.
Pasted from python's documentation:
\s
For Unicode (str) patterns:
Matches Unicode whitespace characters (which includes
[ \t\n\r\f\v], and also many other characters, for example the
non-breaking spaces mandated by typography rules in many languages). If
the ASCII flag is used, only [ \t\n\r\f\v] is matched.
[...]
Fixes: d9f8c9561823daf234e2348b5ea0db2e92d29216
('views: better dhcp conf parsing when importing clients')
Diffstat (limited to 'ogcp/templates/actions/repos_details.html')
0 files changed, 0 insertions, 0 deletions