Skip to content

Commit 4cdc8fd

Browse files
committed
Return raw value of template literal even if it is an empty string.
This clarifies the API a bit. Let function callee decide how to define an empty string.
1 parent 4fabf91 commit 4cdc8fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/buildTemplateLiteral.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const buildTemplateLiteral = templateLiteral => {
2828
return raw;
2929
}, '');
3030

31-
return rawString === '' ? undefined : rawString;
31+
return rawString;
3232
};
3333

3434
export default buildTemplateLiteral;

0 commit comments

Comments
 (0)