I am trying to fix character mappings on paste within a text area element using the following object to match characters.
var replacementMap = {
String.fromCharCode(61607) : String.fromCharCode("9632"), //solid box
String.fromCharCode(61623) : String.fromCharCode("9679"), //solid circle
String.fromCharCode(61656) : String.fromCharCode("9654"), //right arrow
String.fromCharCode(61692) : String.fromCharCode("10003"), //checkmark
String.fromCharCode(61558) : String.fromCharCode("10070") //black diamond minus white X
};
This object is called from a regular expression to change the characters within a string based on the character codes but currently firebug is throwing the following error:
SyntaxError: missing : after property id
String.fromCharCode(61607) : String.fromCharCode("9632"), //solid