commit | bc60116c5bc49211e926f53d611051c579b69662 | [log] [tgz] |
---|---|---|
author | Yohei Yukawa <yukawa@google.com> | Sun Jun 17 21:08:20 2018 -0700 |
committer | Yohei Yukawa <yukawa@google.com> | Sun Jun 17 21:08:20 2018 -0700 |
tree | 003cec402909a912fd84971fda3e164281432e53 | |
parent | bb0a2247147139e7f01b66366e4552858b5747a4 [diff] |
Fix broken language matching logic in TSMS Checking language similarity with String#startsWith() is fundamentally broken. For instance, "fi" (Finnish) can match "fil" (Filipino). This CL addresses such a broken comparison. Bug: 110275412 Test: Manually verified that spell checker still works Change-Id: I8d71760c534627b7707e16eb0fc648989f7692ae