Skip to content

Commit

Permalink
substr() to substring()
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed May 15, 2024
1 parent a61ad0e commit e4a184e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions javascript/JZZ.js
Original file line number Diff line number Diff line change
Expand Up @@ -2582,12 +2582,12 @@
s += ss ? ' ' + ss : '';
s += ': ';
if (this.dd.charCodeAt(2) == 0) {
return s + this.dd.substr(3, 4) + ' ' + _hex(_s2a(this.dd.substr(7)));
return s + this.dd.substring(3, 7) + ' ' + _hex(_s2a(this.dd.substring(7)));
}
if (this.dd.charCodeAt(2) == 1) {
return s + this.getText();
}
return s + _hex(_s2a(this.dd.substr(3)));
return s + _hex(_s2a(this.dd.substring(3)));
}
}
s += 'Sequencer Specific' + _smfhex(this.dd);
Expand Down
2 changes: 1 addition & 1 deletion minified/JZZ.js

Large diffs are not rendered by default.

0 comments on commit e4a184e

Please sign in to comment.