Skip to content

Instantly share code, notes, and snippets.

@ymt2
Last active July 8, 2019 12:56
Show Gist options
  • Select an option

  • Save ymt2/6888031 to your computer and use it in GitHub Desktop.

Select an option

Save ymt2/6888031 to your computer and use it in GitHub Desktop.
Decode unicode text for ClipMenu
// Decode unicode text for ClipMenu ( http://www.clipmenu.com/ja/ )
return (function(text) {
return text.replace(/\\[uU]([a-fA-F0-9]{4})/g, function(matchedString, group1) {
return String.fromCharCode(parseInt(group1, 16));
});
})(clipText);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment