Explorar o código

fixed detection of underscores in dynamic text apply

ncannasse %!s(int64=6) %!d(string=hai) anos
pai
achega
170bb54bdf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      hxd/res/DynamicText.hx

+ 1 - 1
hxd/res/DynamicText.hx

@@ -37,7 +37,7 @@ class DynamicText {
 		applyRec([], obj, x, ref, onMissing);
 	}
 
-	static var r_attr = ~/::([A-Za-z0-9]+)::/g;
+	static var r_attr = ~/::([A-Za-z0-9_]+)::/g;
 
 	static function applyText( path : Array<String>, old : Dynamic, x : Access, ref : Access, onMissing ) {
 		var str = x == null ? null : x.innerHTML;