GithubHelp home page GithubHelp logo

Comments (3)

zh-lx avatar zh-lx commented on July 29, 2024

感谢反馈,其实目前源码中字符串输出就是在数组输出的基础上手动调用了一下 join 方法,因为感觉用户通过 array 输出然后 join 一下并不麻烦,所以一直推荐了用户使用 join。不过现在看起来对于支持自定义分割符的用户还蛮多的,所以我决定支持以下这个功能,修改不麻烦,预计今晚就可以。

另外对于你说的用户筛选的这个功能,感觉 match api 很符合你的场景,也可以看看使用 match api 会不会更加方便一些。

from pinyin-pro.

zh-lx avatar zh-lx commented on July 29, 2024

已在 3.16.0 版本中支持该功能,欢迎安装体验

pinyin('汉语拼音', { separator: '-' }); // 'hàn-yǔ-pīn-yīn'

from pinyin-pro.

wujiaran avatar wujiaran commented on July 29, 2024

!!!
感谢大佬!这更新速度太快了!!

我刚刚试了一下,已经用上了 :)

另外我看了 match api,确实很符合我的场景,而且匹配功能更加强大。match api 还返回了位置数组,这样我还能考虑做一个匹配关键字的高亮标识。之前确实错过了这个功能,感谢大佬提醒!

from pinyin-pro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.