Просмотр исходного кода

:octocat: Kanji second byte validation causes too many issues

smiley 2 лет назад
Родитель
Сommit
72878502b6
1 измененных файлов с 0 добавлено и 16 удалено
  1. 0 16
      src/Data/Kanji.php

+ 0 - 16
src/Data/Kanji.php

@@ -100,22 +100,6 @@ final class Kanji extends QRDataModeAbstract{
 				return false;
 			}
 
-			// byte 1 is even, second byte in range 0x9f - 0xfc
-			if(($byte1 % 2) === 0){
-				if($byte2 < 0x9f){
-					return false;
-				}
-			}
-			// byte 1 is odd, second byte in range 0x40 - 0x9e (technically)
-			// now this is weird: according to spec, the second byte should be lower than 0x9e.
-			// however, converting encodings back and forth seems to mess with the string somehow.
-			// someone please riddle me this
-#			else{
-#				if($byte2 > 0x9e){
-#					return false;
-#				}
-#			}
-
 		}
 
 		return true;