@threespot/expand-toggle
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "@threespot/expand-toggle", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Simple and accessible expandable functionality, similar to jQuery’s `slideToggle()` method.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -27,3 +27,3 @@ # Expand Toggle | ||
// ES6 | ||
toggles.forEach( (el) => new ExpandToggle(el) ); | ||
toggles.forEach(el => new ExpandToggle(el)); | ||
@@ -30,0 +30,0 @@ // ES5 |
@@ -5,3 +5,3 @@ import ExpandToggle from "../index"; | ||
function minify(string) { | ||
return string.replace(/\r?\n|\r/g,'').replace(/\s+/g,' ').trim() | ||
return string.replace(/\s{2,}/g,'').trim(); | ||
} | ||
@@ -8,0 +8,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1815926