浏览代码

Do not convert output URI to lowercase

Preserve lowercase matching in query mode (not in bookmark mode).
Alois Mahdal 10 年前
父节点
当前提交
015d5cfdca
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1
    2
      src/ffoo/saturnin_www.sh

+ 1
- 2
src/ffoo/saturnin_www.sh 查看文件

137
     # Turn keyword or query (like "g hello" for google) to URI
137
     # Turn keyword or query (like "g hello" for google) to URI
138
     #
138
     #
139
     local line
139
     local line
140
-    declare -l line
141
     while read line;
140
     while read line;
142
     do
141
     do
143
         line="$line "
142
         line="$line "
146
         debug -v kw query
145
         debug -v kw query
147
         if test -n "$query";
146
         if test -n "$query";
148
         then
147
         then
149
-            local fmt=$(inigrep -j -1 -p www.query.$kw)
148
+            local fmt=$(inigrep -j -1 -p www.query.${kw,,})
150
             debug -v fmt
149
             debug -v fmt
151
             printf "$fmt\n" "$query"
150
             printf "$fmt\n" "$query"
152
         else
151
         else