Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
uuidjs#38: s/byte/octet/ to avoid issues with parsers that still thin…
Browse files Browse the repository at this point in the history
…k 'byte' is a reserved word
  • Loading branch information
broofa committed Feb 19, 2012
1 parent 280cc8a commit 64d22f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uuid.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
});

Expand Down

0 comments on commit 64d22f7

Please sign in to comment.