add s for sharp (fixes notes example)

This commit is contained in:
Felix Roos 2022-11-17 10:16:29 +01:00
parent 94a594c777
commit 9717c696d8

View File

@ -5,7 +5,7 @@ This program is free software: you can redistribute it and/or modify it under th
*/
// returns true if the given string is a note
export const isNote = (name) => /^[a-gA-G][#b]*[0-9]$/.test(name);
export const isNote = (name) => /^[a-gA-G][#bs]*[0-9]$/.test(name);
export const tokenizeNote = (note) => {
if (typeof note !== 'string') {
return [];