moar mappings for process_emoticons
This commit is contained in:
parent
abde3244b5
commit
77bae90d0e
2 changed files with 6 additions and 3 deletions
|
|
@ -284,7 +284,10 @@ module ApplicationHelper
|
||||||
":-)" => "☺",
|
":-)" => "☺",
|
||||||
"->" => "→",
|
"->" => "→",
|
||||||
"<-" => "←",
|
"<-" => "←",
|
||||||
"..." => "…"
|
"..." => "…",
|
||||||
|
"(tm)" => "™",
|
||||||
|
"(r)" => "®",
|
||||||
|
"(c)" => "©"
|
||||||
}
|
}
|
||||||
|
|
||||||
map.each do |search, replace|
|
map.each do |search, replace|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,8 @@ describe ApplicationHelper do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "replaces various things with (their) HTML entities" do
|
it "replaces various things with (their) HTML entities" do
|
||||||
message = ":) :-) :( :-( ... -> <-"
|
message = ":) :-) :( :-( ... -> <- (tm) (r) (c)"
|
||||||
markdownify(message).should == "☺ ☺ ☹ ☹ … → ←"
|
markdownify(message).should == "☺ ☺ ☹ ☹ … → ← ™ ® ©"
|
||||||
end
|
end
|
||||||
|
|
||||||
it "skips doing it if you say so" do
|
it "skips doing it if you say so" do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue