Skip to content

Commit dae37b0

Browse files
committed
fix: treat Symbol the same as array.join
1 parent 945c704 commit dae37b0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"devDependencies": {
2828
"@fastify/pre-commit": "^2.1.0",
2929
"c8": "^10.1.2",
30-
"grules": "^0.25.5",
30+
"grules": "^0.25.10",
3131
"tinybench": "^2.9.0",
3232
"typescript": ">=5.6.2"
3333
},

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const html = (literals, ...expressions) => {
5858
let literal = literals.raw[i];
5959
let string = Array.isArray(expressions[i])
6060
? expressions[i].join("")
61-
: String(expressions[i] ?? "");
61+
: `${expressions[i] ?? ""}`;
6262

6363
if (literal && literal.charCodeAt(literal.length - 1) === 33) {
6464
literal = literal.slice(0, -1);

0 commit comments

Comments
 (0)