Forráskód Böngészése

fixed detection of underscores in dynamic text apply

ncannasse 6 éve
szülő
commit
170bb54bdf
1 módosított fájl, 1 hozzáadás és 1 törlés
  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;