Brooooooklyn / pinyin

rust-pinyin binding for Node.js
https://napi.rs/docs/ecosystem/@napi-rs/pinyin
MIT License
145 stars 9 forks source link

Compare just applied to first char in giving string input #273

Closed AielloChan closed 5 months ago

AielloChan commented 6 months ago
import { compare } from '@napi-rs/pinyin'

compare('蜘蛛侠1', '蜘蛛侠2') // 0

The right answer should be -1, because compare current just applied to first char.

AielloChan commented 6 months ago

Can we have a new version of the package be released to npm today? thanks @Brooooooklyn

AielloChan commented 5 months ago

Can we have a new version of the package be released to npm today? thanks @Brooooooklyn

never mind, I chose a self implementation 😂