Closed mkoo closed 9 years ago
See ex. Red-Bellied should be Red-bellied http://ssarherps.org/cndb/polymer1beta/#cmVkLWJlbGxpZWQmbG9vc2U9dHJ1ZQ
submitted by Brian Crother
Filtered through this regex function
smartUpperCasing = (text) -> replacer = (match) -> return match.replace(match, match.toUpperCase()) text.replace(/((?=((?!-)[\W\s\r\n]))\s[A-Za-z]|^[A-Za-z])/g, replacer)
See ex. Red-Bellied should be Red-bellied http://ssarherps.org/cndb/polymer1beta/#cmVkLWJlbGxpZWQmbG9vc2U9dHJ1ZQ
submitted by Brian Crother