Changeset 31979
- Timestamp:
- 04/06/09 11:21:44 (4 years ago)
- Location:
- lang/ruby/haikuchat
- Files:
-
- 2 modified
-
lib/log.rb (modified) (1 diff)
-
test/test_log.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/haikuchat/lib/log.rb
r31772 r31979 42 42 type, value = :keyword, string 43 43 when "h" 44 haiku_matches = %r{http://h.hatena.ne.jp/( \w+)/(\d+)}.match(string)44 haiku_matches = %r{http://h.hatena.ne.jp/([a-zA-Z][-a-zA-Z0-9_]{1,30}[a-zA-Z\d])/(\d+)}.match(string) 45 45 if haiku_matches 46 46 type, value = :entry, haiku_matches[2] -
lang/ruby/haikuchat/test/test_log.rb
r31772 r31979 86 86 87 87 [ 88 %w{http://example.com/ url http://example.com/ http://example.com/},89 %w{http://h.hatena.ne.jp/user /1234 entry http://h.hatena.ne.jp/user/1234 1234},90 %w{[[auto_keyword]] keyword auto_keyword auto_keyword},91 %w{id:auto_user user id:auto_user id:auto_user},88 %w{http://example.com/ url http://example.com/ http://example.com/}, 89 %w{http://h.hatena.ne.jp/user-id/1234 entry http://h.hatena.ne.jp/user-id/1234 1234}, 90 %w{[[auto_keyword]] keyword auto_keyword auto_keyword}, 91 %w{id:auto_user user id:auto_user id:auto_user}, 92 92 ].each do |source, type, string, value| 93 93 class_eval <<-"END"
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)