File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments