File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,16 +34,16 @@ function utf8_encode(argString) {
34
34
enc = String . fromCharCode (
35
35
( c1 >> 6 ) | 192 , ( c1 & 63 ) | 128
36
36
) ;
37
- } else if ( c1 & 0xF800 != 0xD800 ) {
37
+ } else if ( ( c1 & 0xF800 ) != 0xD800 ) {
38
38
enc = String . fromCharCode (
39
39
( c1 >> 12 ) | 224 , ( ( c1 >> 6 ) & 63 ) | 128 , ( c1 & 63 ) | 128
40
40
) ;
41
41
} else { // surrogate pairs
42
- if ( c1 & 0xFC00 != 0xD800 ) {
42
+ if ( ( c1 & 0xFC00 ) != 0xD800 ) {
43
43
throw new RangeError ( 'Unmatched trail surrogate at ' + n ) ;
44
44
}
45
45
var c2 = string . charCodeAt ( ++ n ) ;
46
- if ( c2 & 0xFC00 != 0xDC00 ) {
46
+ if ( ( c2 & 0xFC00 ) != 0xDC00 ) {
47
47
throw new RangeError ( 'Unmatched lead surrogate at ' + ( n - 1 ) ) ;
48
48
}
49
49
c1 = ( ( c1 & 0x3FF ) << 10 ) + ( c2 & 0x3FF ) + 0x10000 ;
@@ -65,4 +65,4 @@ function utf8_encode(argString) {
65
65
}
66
66
67
67
return utftext ;
68
- }
68
+ }
You can’t perform that action at this time.
0 commit comments