Skip to content

Commit a8abe78

Browse files
committed
don't check for \n
1 parent ede24b0 commit a8abe78

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

aquarium/aquarium.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -513,15 +513,15 @@ function createProgramFromTags(
513513
}
514514

515515
if (opt_reflection) {
516-
fs = fs.replace(/^.*?\/\/ #noReflection\n/gm, "");
516+
fs = fs.replace(/^.*?\/\/ #noReflection$/gm, "");
517517
} else {
518-
fs = fs.replace(/^.*?\/\/ #reflection\n/gm, "");
518+
fs = fs.replace(/^.*?\/\/ #reflection$/gm, "");
519519
}
520520

521521
if (opt_normalMaps) {
522-
fs = fs.replace(/^.*?\/\/ #noNormalMap\n/gm, "");
522+
fs = fs.replace(/^.*?\/\/ #noNormalMap$/gm, "");
523523
} else {
524-
fs = fs.replace(/^.*?\/\/ #normalMap\n/gm, "");
524+
fs = fs.replace(/^.*?\/\/ #normalMap$/gm, "");
525525
}
526526

527527
var vs = getScriptText(vertexTagId);

0 commit comments

Comments
 (0)