Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github-slugger

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-slugger - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

7

CHANGELOG.md

@@ -6,3 +6,6 @@ # github-slugger change log

## Unreleased
* engage
## 1.1.0
* Feature: Support for non-latin characters in slugs https://github.com/Flet/github-slugger/pull/2) Thanks [@tadatuta](https://github.com/tadatuta)!
## 1.0.1
* Fix: bug for multiple empty slugds (https://github.com/Flet/github-slugger/pull/1) Thanks [@wooorm](https://github.com/wooorm)!

@@ -46,4 +46,3 @@ module.exports = BananaSlug

function slugger (string) {
var allowedCharacters = 'A-Za-z0-9_ -'
var re = new RegExp('[^' + allowedCharacters + ']', 'g')
var re = /[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,.\/:;<=>?@\[\]^`{|}~]/g
var maintainCase = false

@@ -50,0 +49,0 @@ var replacement = '-'

{
"name": "github-slugger",
"description": "Generate a slug just like GitHub does for markdown headings.",
"version": "1.0.1",
"version": "1.1.0",
"author": "Dan Flettre <fletd01@yahoo.com>",

@@ -6,0 +6,0 @@ "bugs": {

@@ -86,3 +86,8 @@ var test = require('tape')

slug: 'duplicate-2'
},
{
mesg: 'deals with non-latin chars',
text: 'Привет',
slug: 'привет'
}
]
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc