RadLikeWhoa/Countable — pull request #13 by craniumslows (2013-05-01 23:59:13+00:00)
Title: Fixed RegEx & Added ucs2decode

I needed to get my mind off of work so I went ahead and fixed the 3 open issues. You can check it out at http://jsfiddle.net/j6nkw/3/

I think this could do with a minified version.

Specific Changes / issues
1. The word counter wasn't greedy enough so it would match " but not "x"
2. Excluding HTML tags required a new RegularExpression. Made it selectable by looking for an omit attribute if it is "on" then html tags aren't counted.
3. Since punycode and Countable are both MIT licensed took the ucs2decode function and used to correct counting for Unicode characters.