diff options
author | Siri Hansen <[email protected]> | 2017-08-25 16:50:07 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2017-09-05 11:32:03 +0200 |
commit | 46e5b36b2a2fd70fef26ee0ad7e08a3c7c2fd7fd (patch) | |
tree | 87560a93e1f2d6539b7be7064de7d2ba557cc777 /lib/common_test/src/ct_telnet.erl | |
parent | 4bf9c5a5cc52a0ce76fbec638deff0ff88a5dfd8 (diff) | |
download | otp-46e5b36b2a2fd70fef26ee0ad7e08a3c7c2fd7fd.tar.gz otp-46e5b36b2a2fd70fef26ee0ad7e08a3c7c2fd7fd.tar.bz2 otp-46e5b36b2a2fd70fef26ee0ad7e08a3c7c2fd7fd.zip |
ct: use 'unicode' option for regexps
Diffstat (limited to 'lib/common_test/src/ct_telnet.erl')
-rw-r--r-- | lib/common_test/src/ct_telnet.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/common_test/src/ct_telnet.erl b/lib/common_test/src/ct_telnet.erl index 14d9d381da..b50cddd492 100644 --- a/lib/common_test/src/ct_telnet.erl +++ b/lib/common_test/src/ct_telnet.erl @@ -1455,7 +1455,7 @@ match_line(Name,Pid,Line,[{prompt,PromptType}|Patterns],FoundPrompt,Term, when PromptType=/=FoundPrompt -> match_line(Name,Pid,Line,Patterns,FoundPrompt,Term,EO,RetTag); match_line(Name,Pid,Line,[{Tag,Pattern}|Patterns],FoundPrompt,Term,EO,RetTag) -> - case re:run(Line,Pattern,[{capture,all,list}]) of + case re:run(Line,Pattern,[{capture,all,list},unicode]) of nomatch -> match_line(Name,Pid,Line,Patterns,FoundPrompt,Term,EO,RetTag); {match,Match} -> @@ -1463,7 +1463,7 @@ match_line(Name,Pid,Line,[{Tag,Pattern}|Patterns],FoundPrompt,Term,EO,RetTag) -> {RetTag,{Tag,Match}} end; match_line(Name,Pid,Line,[Pattern|Patterns],FoundPrompt,Term,EO,RetTag) -> - case re:run(Line,Pattern,[{capture,all,list}]) of + case re:run(Line,Pattern,[{capture,all,list},unicode]) of nomatch -> match_line(Name,Pid,Line,Patterns,FoundPrompt,Term,EO,RetTag); {match,Match} -> @@ -1575,7 +1575,7 @@ split_lines([],Line,Lines) -> match_prompt(Str,Prx) -> match_prompt(Str,Prx,[]). match_prompt(Str,Prx,Acc) -> - case re:run(Str,Prx) of + case re:run(Str,Prx,[unicode]) of nomatch -> noprompt; {match,[{Start,Len}]} -> |