Skip to content

Commit

Permalink
Merge pull request #262 from flowerysong/fromstring
Browse files Browse the repository at this point in the history
Fix excessive escaping when using `ucl_object_fromstring()`
  • Loading branch information
vstakhov committed Feb 1, 2024
2 parents d6e62ca + dcb43f0 commit 07a7dc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ucl_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -3089,13 +3089,13 @@ ucl_object_type (const ucl_object_t *obj)
ucl_object_t*
ucl_object_fromstring (const char *str)
{
return ucl_object_fromstring_common (str, 0, UCL_STRING_ESCAPE);
return ucl_object_fromstring_common (str, 0, UCL_STRING_RAW);
}

ucl_object_t *
ucl_object_fromlstring (const char *str, size_t len)
{
return ucl_object_fromstring_common (str, len, UCL_STRING_ESCAPE);
return ucl_object_fromstring_common (str, len, UCL_STRING_RAW);
}

ucl_object_t *
Expand Down

0 comments on commit 07a7dc3

Please sign in to comment.