Browse Source

binary conversion

dxt 2 years ago
parent
commit
680183ce37
2 changed files with 4 additions and 2 deletions
  1. 3 1
      lib/comboSearch.ex
  2. 1 1
      mix.exs

+ 3 - 1
lib/comboSearch.ex

@@ -136,7 +136,9 @@ defmodule NITRO.Combo.Search do
         filtered = if value == "all", do: rows, else: rows |>
           Enum.flat_map(fn row ->
             if index
-              |> Enum.map(&(:string.lowercase(&1.(row))))
+              |> Enum.map(&(&1.(row)))
+              |> Enum.map(&:nitro.to_binary(&1))
+              |> Enum.map(&:string.lowercase(&1))
               |> Enum.filter(fn r -> cps |> Enum.all?(&:binary.match(r,&1,[]) != :nomatch) end)
               |> Enum.empty?, do: [], else: [row]
           end)

+ 1 - 1
mix.exs

@@ -4,7 +4,7 @@ defmodule NITRO.Mixfile do
   def project do
     [
       app: :nitro,
-      version: "7.8.3",
+      version: "7.9.0",
       description: "NITRO Nitrogen Web Framework",
       package: package(),
       deps: deps()