We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49a0ee6 commit 222aa79Copy full SHA for 222aa79
1 file changed
index.js
@@ -119,10 +119,11 @@ function parserWrapper() {
119
return postHTMLParser(html, opt);
120
}
121
122
- if (arguments.length === 1 &&
123
- arguments[0] !== null &&
124
- typeof arguments[0] === 'object' &&
125
- Array.isArray(arguments[0]) === false) {
+ if (
+ arguments.length === 1 &&
+ Boolean(arguments[0]) &&
+ arguments[0].constructor.name === 'Object'
126
+ ) {
127
option = arguments[0];
128
return parser;
129
0 commit comments