From 7cfaab8e84d2a36317749b0c57f1fcceb1d626a2 Mon Sep 17 00:00:00 2001 From: JounQin Date: Mon, 10 Aug 2020 16:10:12 +0800 Subject: [PATCH] docs: `number` and `null` could be returned ```js safeLoad('0') -> 0 safeLoad('null') -> null ``` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 246e5635..b78d6df8 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ try { ### safeLoad (string [ , options ]) **Recommended loading way.** Parses `string` as single YAML document. Returns either a -plain object, a string or `undefined`, or throws `YAMLException` on error. By default, does +plain object, a string, a number, `null` or `undefined`, or throws `YAMLException` on error. By default, does not support regexps, functions and undefined. This method is safe for untrusted data. options: