Skip to content

Commit f5dc072

Browse files
committed
gu a
1 parent d6554e4 commit f5dc072

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/openfl/display/Shader.hx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,9 @@ class Shader
310310
var regex, defaultValue:Dynamic, type:ShaderParameterType, arrLength:Null<Int>;
311311
var isUniform = storageType == "uniform", lastMatch = 0, position;
312312

313-
if (isUniform) regex = ~/uniform ([A-Za-z0-9]+) ([A-Za-z0-9_]+)(?:\[(\w+)\])?\s*(?:=)?\s*(.+?(?=;))?/g;
314-
else if (storageType == "in") regex = ~/in ([A-Za-z0-9]+) ([A-Za-z0-9_]+)(?:\[(\w+)\])?/g;
315-
else regex = ~/attribute ([A-Za-z0-9]+) ([A-Za-z0-9_]+)(?:\[(\w+)\])?/g;
313+
if (isUniform) regex = ~/uniform ([A-Za-z0-9]+) ([A-Za-z0-9_]+)(?:\[(\w+)\])?\s*(?:=)?\s*(.+?(?=;))?/gu;
314+
else if (storageType == "in") regex = ~/in ([A-Za-z0-9]+) ([A-Za-z0-9_]+)(?:\[(\w+)\])?/gu;
315+
else regex = ~/attribute ([A-Za-z0-9]+) ([A-Za-z0-9_]+)(?:\[(\w+)\])?/gu;
316316

317317
return regex.map(source, (_) -> {
318318
if (regex.matched(3) == null) arrLength = 0;

0 commit comments

Comments
 (0)