Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoSign in
Socket

breakdance-util

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

breakdance-util - npm Package Compare versions

Comparing version
0.1.1
to
0.1.2
+9
-9
index.js

@@ -126,13 +126,13 @@ 'use strict';

exports.getLang = function(attribs) {
if (typeOf(attribs) === 'object') {
var lang = get(attribs, 'data-lang')
|| get(attribs, 'data-language')
|| get(attribs, 'class') || '';
attribs = attribs || {};
var lang = get(attribs, 'data-lang') || get(attribs, 'data-language') || '';
var classLang = get(attribs, 'class') || '';
var match = /lang(?:uage)?-([^\s]+)/.exec(lang);
if (match) {
return match[1];
}
var regex = /lang(?:uage)?-([^\s]+)/;
var match = regex.exec(lang) || regex.exec(classLang);
if (match) {
return match[1];
}
return '';
return lang;
};

@@ -139,0 +139,0 @@

{
"name": "breakdance-util",
"description": "Utility functions for breakdance plugins.",
"version": "0.1.1",
"version": "0.1.2",
"homepage": "https://github.com/jonschlinkert/breakdance-util",

@@ -59,2 +59,9 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

],
"related": {
"list": [
"breakdance",
"generate-breakdance",
"breakdance-checklist"
]
},
"lint": {

@@ -61,0 +68,0 @@ "reflinks": true

@@ -112,2 +112,7 @@ # breakdance-util [![NPM version](https://img.shields.io/npm/v/breakdance-util.svg?style=flat)](https://www.npmjs.com/package/breakdance-util) [![NPM monthly downloads](https://img.shields.io/npm/dm/breakdance-util.svg?style=flat)](https://npmjs.org/package/breakdance-util) [![NPM total downloads](https://img.shields.io/npm/dt/breakdance-util.svg?style=flat)](https://npmjs.org/package/breakdance-util) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/breakdance-util.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/breakdance-util)

### Related projects
* [breakdance-checklist](https://www.npmjs.com/package/breakdance-checklist): Plugin that adds checklist rendering support to breakdance, similar to task lists in github-flavored-markdown. | [homepage](https://github.com/jonschlinkert/breakdance-checklist "Plugin that adds checklist rendering support to breakdance, similar to task lists in github-flavored-markdown.")
* [breakdance](https://www.npmjs.com/package/breakdance): Breakdance is a node.js library for converting HTML to markdown. Highly pluggable, flexible and easy… [more](http://breakdance.io) | [homepage](http://breakdance.io "Breakdance is a node.js library for converting HTML to markdown. Highly pluggable, flexible and easy to use. It's time for your markup to get down.")
### Contributing

@@ -114,0 +119,0 @@