Skip to content

Commit b0eb222

Browse files
committed
docs(changeset): Remove spaces around +, *, -, and / as well.
1 parent 00e9667 commit b0eb222

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/proud-pandas-nail.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"esbuild-plugin-webgl": patch
3+
---
4+
5+
Remove spaces around +, \*, -, and / as well.

lib/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const webglPlugin: () => Plugin = () => ({
1919
// remove line comments
2020
.replace(/\/\/.*/g, "")
2121
// remove white spaces around =
22-
.replace(/ = /g, "=")
22+
.replace(/ [=+*-/] /g, m => m.trim())
2323
.split("\n")
2424
.map(line => line.trim())
2525
.filter(Boolean);

0 commit comments

Comments
 (0)