Sfoglia il codice sorgente

[lua] Support "u" flag (UTF-8 mode) in EReg

ARATA Mizuki 9 anni fa
parent
commit
e8ccaab32a
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      std/lua/_std/EReg.hx

+ 1 - 0
std/lua/_std/EReg.hx

@@ -41,6 +41,7 @@ class EReg {
 				case "i" : ropt |= FLAGS.CASELESS;
 				case "m" : ropt |= FLAGS.MULTILINE;
 				case "s" : ropt |= FLAGS.DOTALL;
+				case "u" : ropt |= FLAGS.UTF8;
 				case "g" : global = true;
 				default : null;
 			}