Fixed accents bug

This commit is contained in:
Chen Yi-Cyuan
2014-07-27 19:49:38 +08:00
parent f451a9b4a1
commit fc26dd221e
5 changed files with 10 additions and 4 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
/*
* js-md5 v0.1.1
* js-md5 v0.1.2
* https://github.com/emn178/js-md5
*
* Copyright 2014, emn178@gmail.com
@@ -111,7 +111,7 @@
var hasUTF8 = function(message) {
var i = message.length;
while(i--)
if(message.charCodeAt(i) > 255)
if(message.charCodeAt(i) > 127)
return true;
return false;
};