Skip to content

Commit 7619c0c

Browse files
committed
better name
1 parent a0aba03 commit 7619c0c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

analysis/src/CompletionBackEnd.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ let getComplementaryCompletionsForTypedValue ~opens ~allFiles ~scope ~env prefix
502502
Utils.checkName name ~prefix ~exact
503503
&& not
504504
(* TODO complete the namespaced name too *)
505-
(Utils.hasUnallowedChars name)
505+
(Utils.fileNameHasUnallowedChars name)
506506
then
507507
Some
508508
(Completion.create name ~env ~kind:(Completion.FileModule name))
@@ -528,7 +528,7 @@ let getCompletionsForPath ~debug ~package ~opens ~full ~pos ~exact ~scope
528528
Utils.checkName name ~prefix ~exact
529529
&& not
530530
(* TODO complete the namespaced name too *)
531-
(Utils.hasUnallowedChars name)
531+
(Utils.fileNameHasUnallowedChars name)
532532
then
533533
Some
534534
(Completion.create name ~env ~kind:(Completion.FileModule name))

analysis/src/Utils.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ let cutAfterDash s =
222222
| n -> ( try String.sub s 0 n with Invalid_argument _ -> s)
223223
| exception Not_found -> s
224224

225-
let hasUnallowedChars s =
225+
let fileNameHasUnallowedChars s =
226226
let regexp = Str.regexp "[^A-Za-z0-9]" in
227227
try
228228
ignore (Str.search_forward regexp s 0);

0 commit comments

Comments
 (0)