Permalink
Browse files

Temporary commented out regex because of encoding issues.

  • Loading branch information...
1 parent 7377317 commit 80f49cbae0582d573c60a340d89de1153189184f @hansv committed Apr 7, 2012
Showing with 16 additions and 16 deletions.
  1. +16 −16 lib/vpim/vcard.rb
View
@@ -669,22 +669,22 @@ def Vcard.decode(card)
raise ArgumentError, "Vcard.decode cannot be called with a #{card.type}"
end
- case string
- when /^\xEF\xBB\xBF/
- string = string.sub("\xEF\xBB\xBF", '')
- when /^\xFE\xFF/
- arr = string.unpack('n*')
- arr.shift
- string = arr.pack('U*')
- when /^\xFF\xFE/
- arr = string.unpack('v*')
- arr.shift
- string = arr.pack('U*')
- when /^\x00B/i
- string = string.unpack('n*').pack('U*')
- when /^B\x00/i
- string = string.unpack('v*').pack('U*')
- end
+# case string
+# when /^\xEF\xBB\xBF/
+# string = string.sub("\xEF\xBB\xBF", '')
+# when /^\xFE\xFF/
+# arr = string.unpack('n*')
+# arr.shift
+# string = arr.pack('U*')
+# when /^\xFF\xFE/
+# arr = string.unpack('v*')
+# arr.shift
+# string = arr.pack('U*')
+# when /^\x00B/i
+# string = string.unpack('n*').pack('U*')
+# when /^B\x00/i
+# string = string.unpack('v*').pack('U*')
+# end
entities = Vpim.expand(Vpim.decode(string))

0 comments on commit 80f49cb

Please sign in to comment.