Skip to content

Commit 32cc614

Browse files
committed
Add ruby 2.0.0 compatibility
1 parent 010d452 commit 32cc614

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/UniversalDetector.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ class Detector
7272
attr_reader :result
7373

7474
def initialize
75-
@_highBitDetector = /[\x80-\xFF]/
76-
@_escDetector = /\033|~\{/
75+
@_highBitDetector = /[\x80-\xFF]/n
76+
@_escDetector = /\033|~\{/n
7777
@_mEscCharSetProber = nil
7878
@_mCharSetProbers = []
7979
reset

0 commit comments

Comments
 (0)