You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and run it by decoding any text file, say, decoding its own:
$ cat decode.js | node decode.js
I got the following error:
./node_modules/he/he.js:232
return html.replace(regexDecode, function($0, $1, $2, $3, $4, $5, $6, $7) {
^
TypeError: html.replace is not a function
at Object.decode (./node_modules/he/he.js:232:15)
and if I changed html.replace to String(html).replace, it fixes the TypeError. Is it a valid bug/fix?
The text was updated successfully, but these errors were encountered:
When I tested the module with the following code:
and run it by decoding any text file, say, decoding its own:
I got the following error:
./node_modules/he/he.js:232
return html.replace(regexDecode, function($0, $1, $2, $3, $4, $5, $6, $7) {
^
TypeError: html.replace is not a function
at Object.decode (./node_modules/he/he.js:232:15)
and if I changed html.replace to String(html).replace, it fixes the TypeError. Is it a valid bug/fix?
The text was updated successfully, but these errors were encountered: