aboutsummaryrefslogtreecommitdiffstats
path: root/lib/syntax_tools/src/erl_tidy.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2017-08-25 12:08:45 +0200
committerSiri Hansen <[email protected]>2017-09-05 11:31:56 +0200
commit4bf9c5a5cc52a0ce76fbec638deff0ff88a5dfd8 (patch)
treedd3240c4787cba31b97f04dae9274de163cecc6a /lib/syntax_tools/src/erl_tidy.erl
parent41b856a2cb270ef807beaa84afe1bb890de5f237 (diff)
downloadotp-4bf9c5a5cc52a0ce76fbec638deff0ff88a5dfd8.tar.gz
otp-4bf9c5a5cc52a0ce76fbec638deff0ff88a5dfd8.tar.bz2
otp-4bf9c5a5cc52a0ce76fbec638deff0ff88a5dfd8.zip
syntax_tools: add 'unicode' option to re:run for matching paths
Diffstat (limited to 'lib/syntax_tools/src/erl_tidy.erl')
-rw-r--r--lib/syntax_tools/src/erl_tidy.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/syntax_tools/src/erl_tidy.erl b/lib/syntax_tools/src/erl_tidy.erl
index bae8d4b7f5..5623aa6af3 100644
--- a/lib/syntax_tools/src/erl_tidy.erl
+++ b/lib/syntax_tools/src/erl_tidy.erl
@@ -193,7 +193,7 @@ dir_3(Name, Dir, Regexp, Env) ->
dir_1(Dir1, Regexp, Env).
dir_4(File, Regexp, Env) ->
- case re:run(File, Regexp) of
+ case re:run(File, Regexp, [unicode]) of
{match, _} ->
Opts = [{outfile, File}, {dir, ""} | Env#dir.options],
case catch file(File, Opts) of