Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fixes to search algorithm |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
d631a9348561e04f1782be3cb148e979 |
User & Date: | kevin 2017-06-22 04:29:36 |
Context
2017-06-22
| ||
11:57 | More cleanup check-in: 4edc76f8f0 user: kevin tags: trunk | |
04:29 | Fixes to search algorithm check-in: d631a93485 user: kevin tags: trunk | |
03:32 | Update help docs check-in: cd98bc04a2 user: kevin tags: trunk | |
Changes
Changes to stringscan.rb.
︙ | ︙ | |||
36 37 38 39 40 41 42 | $lbox.delete(0, 'end') Find.find("#{$dirname}") do |path| $file_list << path unless FileTest.directory?(path) end for i in $file_list begin #we are only reading text files here, not binary. | | > > | | 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | $lbox.delete(0, 'end') Find.find("#{$dirname}") do |path| $file_list << path unless FileTest.directory?(path) end for i in $file_list begin #we are only reading text files here, not binary. text= MIME::Types.type_for(i).first.to_s type = text.split('/')[0] if type =~ /text/ f = File.open(i, "r:iso-8859-1:utf-8") result = f.read if result =~ /#{$searchterm}/ then $lbox.insert('end', "#{i}") f.close end end rescue |
︙ | ︙ |