antfu / case-police

🚨 Make the case correct, PLEASE!
MIT License
1.15k stars 80 forks source link

revert: UTF-8 support breaks some languages, revert PR #120 #141

Open ryougifujino opened 1 year ago

ryougifujino commented 1 year ago

Please read the Contributions Guide before making Pull Requests.

PR #120 breaks some languages such as Japanese and Chinese. For example: GithubのVScode Github的VScode Github:

containsUTF8 will return true because it takes Githubの, のVScode,Github的 ,的VScode and Github: as a whole respectively, so the Github and VScode won't be corrected. UTF-8 support should be implemented in another way.