Skip to content
Browse files

#38: s/byte/octet/ to avoid issues with parsers that still think 'byt…

…e' is a reserved word
  • Loading branch information...
1 parent 280cc8a commit 64d22f7fc853e0a66d9cb962694cea6317a46358 @broofa committed Feb 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 uuid.js
View
4 uuid.js
@@ -67,9 +67,9 @@
var i = (buf && offset) || 0, ii = 0;
buf = buf || [];
- s.toLowerCase().replace(/[0-9a-f]{2}/g, function(byte) {
+ s.toLowerCase().replace(/[0-9a-f]{2}/g, function(oct) {
if (ii < 16) { // Don't overflow!
- buf[i + ii++] = _hexToByte[byte];
+ buf[i + ii++] = _hexToByte[oct];
}
});

0 comments on commit 64d22f7

Please sign in to comment.
Something went wrong with that request. Please try again.