Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
尝试classify以下操作会切断最后一个字母。
classify
"ToSMS".classify => "ToSM"
任何想法为什么会发生这种情况?
弄清楚它为什么这样做。它被SMS视为 的复数形式SM。在变形器中添加了以下内容:
SMS
SM
inflect.irregular 'SMS', 'SMS'