浏览代码

partial fix for #8057

ncannasse 6 年之前
父节点
当前提交
e40ca19abf
共有 1 个文件被更改,包括 2 次插入0 次删除
  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 ->