Skip to content

Commit 666e969

Browse files
authored
Merge pull request #9 from JuliaString/spj/update
Fix imports
2 parents 5b2f5a2 + da8862b commit 666e969

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Unicode_Entities.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ __precompile__()
1414
module Unicode_Entities
1515

1616
using StrTables
17-
import StrTables: matchchar, matches, longmatches, _get_strings, _empty_str_vec
1817

1918
struct PackedEntities{S,T} <: AbstractPackedTable{String}
2019
offsetvec::Vector{T}
@@ -118,7 +117,9 @@ StrTables.matches(ent::Unicode_Entity, vec::Vector{T}) where {T} =
118117
StrTables.longestmatches(ent::Unicode_Entity, vec::Vector{T}) where {T} =
119118
isempty(vec) ? StrTables._empty_str_vec : matchchar(ent, uppercase(vec[1]))
120119

121-
StrTables.completions(ent::Unicode_Entity, str) =
122-
[nam for nam in ent.nam if startswith(nam, str)]
120+
function StrTables.completions(ent::Unicode_Entity, str)
121+
up = uppercase(str)
122+
[nam for nam in ent.nam if startswith(nam, up)]
123+
end
123124

124125
end # module Unicode_Entities

0 commit comments

Comments
 (0)