Merge pull request #271 from tidalcycles/eslint

add eslint
This commit is contained in:
Felix Roos 2022-11-29 23:34:50 +01:00 committed by GitHub
commit be6ec558e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 940 additions and 94 deletions

View file

@ -59,7 +59,7 @@ Pattern.prototype.voicings = function (range) {
Pattern.prototype._rootNotes = function (octave = 2) {
return this.fmap((value) => {
const [_, root] = value.match(/^([a-gA-G][b#]?).*$/);
const root = value.match(/^([a-gA-G][b#]?).*$/)[1];
return root + octave;
});
};