A7+5 is incorrectly parsed into A5, the same is A7(+5) instead of A7(#5).
However A7+ is correctly parsed into A7(#5).
The same error applies to A7-5, which is parsed into A5, instead of A7(b5).
My fix which seem to work for now is:
let valueCleaned = value;
valueCleaned = valueCleaned.replace(/+5/g, '(#5)');
valueCleaned = valueCleaned.replace(/-5/g, '(b5)');
A7+5 is incorrectly parsed into A5, the same is A7(+5) instead of A7(#5). However A7+ is correctly parsed into A7(#5). The same error applies to A7-5, which is parsed into A5, instead of A7(b5).
My fix which seem to work for now is: let valueCleaned = value; valueCleaned = valueCleaned.replace(/+5/g, '(#5)'); valueCleaned = valueCleaned.replace(/-5/g, '(b5)');