diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-03-11 14:57:02 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-03-12 09:21:11 +0100 |
commit | cbf9e36b8598ed05e4fa802c27463d785d6be4d6 (patch) | |
tree | a0550c20350f225bf9e8b57ea93cdf8d685c44f1 /tests/curl_test_data.py | |
parent | 62db12651762d1ea4c9f67f2bd0d9afad3d2ebe4 (diff) | |
download | curl-bagder/getpart-stricter-parser.tar.gz |
curl_test_data.py: improve the XMLish-parserbagder/getpart-stricter-parser
Support newlines between tags and attributes.
Diffstat (limited to 'tests/curl_test_data.py')
-rwxr-xr-x | tests/curl_test_data.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/curl_test_data.py b/tests/curl_test_data.py index 21747407d..f5ce533da 100755 --- a/tests/curl_test_data.py +++ b/tests/curl_test_data.py @@ -1,12 +1,12 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# +# _ _ ____ _ # Project ___| | | | _ \| | # / __| | | | |_) | | # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2017, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) 2017 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms @@ -30,7 +30,7 @@ import logging log = logging.getLogger(__name__) -REPLY_DATA = re.compile("<reply>\s*<data>(.*?)</data>", re.MULTILINE | re.DOTALL) +REPLY_DATA = re.compile("<reply>[ \t\n\r]*<data[^<]*>(.*?)</data>", re.MULTILINE | re.DOTALL) class TestData(object): |