How to automatically apply ISBN hyphenation?

前端 未结 4 1384
花落未央
花落未央 2021-01-31 11:03

I\'ve got ISBN numbers (10-digits and 13 digits) without the dashes. Now I\'m looking for a way to add those dashes automatically.

I found some useful information here:

4条回答
  •  忘了有多久
    2021-01-31 11:21

    I wrote the following JavaScript function to hyphenate ISBNs (I know there is also isbnjs, but this is more compact and easier to include in other projects I think).

    https://gist.github.com/aurimasv/6693537

提交回复
热议问题