Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
axross committed Apr 13, 2016
1 parent 2b7a8e7 commit 053b03e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions distributions/Bem.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ var Bem = function () {
var parts = fullClassName.substr(block.length).match(/(__[A-Za-z0-9]+)|(\-\-[A-Za-z0-9]+)/g);

if (Array.isArray(parts)) {
parts.reduce(function (whole, matched) {
return includes(whole, matched) ? whole : whole.concat([matched]);
}, []).forEach(function (matched) {
parts.forEach(function (matched) {
/* eslint no-magic-numbers: 0 */
if (startsWith(matched, '__')) elements.push(matched.substr(2));
if (startsWith(matched, '--')) modifiers.push(matched.substr(2));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bemmer",
"version": "1.0.2",
"version": "1.1.0",
"description": "BEM-like simple classname builder.",
"main": "./distributions/index.js",
"scripts": {
Expand Down

0 comments on commit 053b03e

Please sign in to comment.