Skip to content

Commit 2ceef3b

Browse files
committed
Fix WebGL shader version regex
1 parent 5c31a02 commit 2ceef3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/webgl/p5.Shader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class Shader {
9999
* @returns {String} The GLSL version used by the shader.
100100
*/
101101
version() {
102-
const match = /#version (.+)$/.exec(this.vertSrc());
102+
const match = /#version (.+)$/m.exec(this.vertSrc());
103103
if (match) {
104104
return match[1];
105105
} else {

0 commit comments

Comments
 (0)