Browse Source

partial fix for #8057

ncannasse 6 years ago
parent
commit
e40ca19abf
1 changed files with 2 additions and 0 deletions
  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 ->
 		with Not_found ->
 			this.r_groups <- [||];
 			this.r_groups <- [||];
 			vfalse
 			vfalse
+		| Pcre.Error _ ->
+			exc_string "PCRE Error (invalid unicode string?)"
 	)
 	)
 
 
 	let matched = vifun1 (fun vthis n ->
 	let matched = vifun1 (fun vthis n ->