fix: only strip whitespaces and tabs, \n\r are left because they maybe used in changeset

This commit is contained in:
debugtalk
2020-06-04 15:21:22 +08:00
parent 8ca177cc44
commit 75228d15f0
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -10,6 +10,7 @@
- fix: missing request json - fix: missing request json
- fix: override testsuite/testcase config verify - fix: override testsuite/testcase config verify
- fix: only strip whitespaces and tabs, \n\r are left because they maybe used in changeset
**Changed** **Changed**
+2 -1
View File
@@ -362,7 +362,8 @@ def parse_data(
# content in string format may contains variables and functions # content in string format may contains variables and functions
variables_mapping = variables_mapping or {} variables_mapping = variables_mapping or {}
functions_mapping = functions_mapping or {} functions_mapping = functions_mapping or {}
raw_data = raw_data.strip() # only strip whitespaces and tabs, \n\r is left because they maybe used in changeset
raw_data = raw_data.strip(" \t")
return parse_string(raw_data, variables_mapping, functions_mapping) return parse_string(raw_data, variables_mapping, functions_mapping)
elif isinstance(raw_data, (list, set, tuple)): elif isinstance(raw_data, (list, set, tuple)):