Socket
Socket
Sign inDemoInstall

hexo-util

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-util - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

lib/highlight.js

@@ -66,3 +66,3 @@ var hljs = require('highlight.js');

function highlight(str, lang){
if (!lang) return hljs.highlightAuto(str);
if (!lang || !hljs.getLanguage(lang)) return hljs.highlightAuto(str);

@@ -69,0 +69,0 @@ if (lang === 'plain'){

@@ -39,5 +39,5 @@ var escapeRegExp = require('./escape_regexp');

Permalink.prototype.parse = function(str){
var match = str.match(this.regex),
params = this.params,
result = {};
var match = str.match(this.regex);
var params = this.params;
var result = {};

@@ -44,0 +44,0 @@ if (!match) return;

var escapeDiacritic = require('./escape_diacritic');
var escapeRegExp = require('./escape_regexp');
var rNull = /[^\x00-\x7F]+/g;
var rControl = /[\u0000-\u001f]/g;
var rSpecial = /[\s~`!@#\$%\^&\*\(\)\-_\+=\[\]\{\}\|\\;:"'<>,\.\?\/]+/g;

@@ -14,4 +14,4 @@

var result = escapeDiacritic(str)
// Remove null characters
.replace(rNull, '')
// Remove control characters
.replace(rControl, '')
// Replace special characters

@@ -18,0 +18,0 @@ .replace(rSpecial, separator)

{
"name": "hexo-util",
"version": "0.1.0",
"version": "0.1.1",
"description": "Utilities for Hexo.",

@@ -5,0 +5,0 @@ "main": "lib/index",

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