hyphen is a character known as the minus.
In unicode, the hyphen has the code point cldr/utility/character.jsp
console.log('-'.charCodeAt(0).toString(16));
The difference between a hyphen and a dash are difficult to compare.
In this case, if you are not sure, you should compare the characters