fix eslint

This commit is contained in:
Régis Hanol 2016-02-05 16:08:31 +01:00
parent 56a16a0e89
commit 91ec2c5171
1 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,5 @@
/*eslint no-bitwise:0 */
/**
Discourse uses the Markdown.js as its main parser. `Discourse.Dialect` is the framework
@ -249,7 +251,7 @@ Discourse.Dialect = {
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = (d + Math.random() * 16) % 16 | 0;
d = Math.floor(d/16);
return (c=='x' ? r : (r&0x3|0x8)).toString(16);
return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16);
});
return uuid;
},