mirror of
https://github.com/emn178/js-sha256.git
synced 2026-08-12 20:32:16 +08:00
Fixed accents bug
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* js-sha256 v0.1.0
|
||||
* js-sha256 v0.1.1
|
||||
* https://github.com/emn178/js-sha256
|
||||
*
|
||||
* Copyright 2014, emn178@gmail.com
|
||||
@@ -137,7 +137,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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user