Changeset 22614
- Timestamp:
- 11/03/08 14:05:46 (5 years ago)
- Files:
-
- 1 modified
-
platform/tdiary/util/tdiarysearch/search.rb (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
platform/tdiary/util/tdiarysearch/search.rb
r14972 r22614 192 192 patterns = split_string(query).map {|pat| 193 193 check_pattern pat 194 /#{Regexp.quote(pat)}/i e194 /#{Regexp.quote(pat)}/iu 195 195 } 196 196 raise WrongQuery, 'no pattern' if patterns.empty? … … 207 207 208 208 def split_string(str) 209 str.split(/[\s#{Z_SPACE}]+/o e).reject {|w| w.empty? }209 str.split(/[\s#{Z_SPACE}]+/ou).reject {|w| w.empty? } 210 210 end 211 211 … … 381 381 when /Comment/ 382 382 cmt = component 383 escape((cmt.name + ': ' + cmt.body).slice(/\A.{0,120}/m e))383 escape((cmt.name + ': ' + cmt.body).slice(/\A.{0,120}/mu)) 384 384 else 385 385 raise "must not happen: #{component.class}" … … 388 388 389 389 def tdiary2text(html) 390 apply_tdiary_plugins(html).gsub(%r[<[^>]*>]em, '').slice(/\A.{0,120}/m e)390 apply_tdiary_plugins(html).gsub(%r[<[^>]*>]em, '').slice(/\A.{0,120}/mu) 391 391 end 392 392
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)