Permalink
Browse files

Now, that I am ready to write me own encoding library, this library h…

…as gone from trivial to rediculously trivial.
  • Loading branch information...
1 parent 78b6f54 commit 8b061f6f715b613031fbf64479e168f71c4fd740 @ascruggs ascruggs committed Mar 2, 2012
Showing with 2 additions and 3 deletions.
  1. +1 −1 VERSION
  2. +1 −2 lib/eightball.rb
View
@@ -1 +1 @@
-0.1.2
+0.1.3
View
@@ -14,8 +14,7 @@ def eightball
end
end
#drop the BOM
- string.gsub!("\xEF\xBB\xBF".force_encoding("UTF-8"), '')
- string
+ string.force_encoding("UTF-8").gsub("\xEF\xBB\xBF".force_encoding("UTF-8"), '')
end
end

0 comments on commit 8b061f6

Please sign in to comment.