Ver Fonte

partial fix for #8057

ncannasse há 6 anos atrás
pai
commit
e40ca19abf
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      src/macro/eval/evalStdLib.ml

+ 2 - 0
src/macro/eval/evalStdLib.ml

@@ -862,6 +862,8 @@ module StdEReg = struct
 		with Not_found ->
 			this.r_groups <- [||];
 			vfalse
+		| Pcre.Error _ ->
+			exc_string "PCRE Error (invalid unicode string?)"
 	)
 
 	let matched = vifun1 (fun vthis n ->