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 Discourse uses the Markdown.js as its main parser. `Discourse.Dialect` is the framework
@ -247,9 +249,9 @@ Discourse.Dialect = {
d += performance.now(); //use high-precision timer if available d += performance.now(); //use high-precision timer if available
} }
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = (d + Math.random()*16)%16 | 0; var r = (d + Math.random() * 16) % 16 | 0;
d = Math.floor(d/16); 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; return uuid;
}, },