detect-indent
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -27,2 +27,3 @@ (function () { | ||
var whitespace = matches[0]; | ||
var len = whitespace.length; | ||
@@ -33,4 +34,9 @@ if (whitespace.indexOf('\t') !== -1) { | ||
// convert odd numbers to even numbers | ||
if (len % 2 === 1) { | ||
len += 1; | ||
} | ||
if (whitespace.indexOf(' ') !== -1) { | ||
spaces.push(whitespace.length); | ||
spaces.push(len); | ||
} | ||
@@ -37,0 +43,0 @@ } |
{ | ||
"name": "detect-indent", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Detect the indentation of code", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -16,3 +16,3 @@ # detect-indent [![Build Status](https://secure.travis-ci.org/sindresorhus/detect-indent.png?branch=master)](http://travis-ci.org/sindresorhus/detect-indent) | ||
Download the library [manually](https://github.com/sindresorhus/detect-indent/raw/master/detect-indent.js) or with a package-manager. | ||
Download the library [manually](https://github.com/sindresorhus/detect-indent/releases) or with a package-manager. | ||
@@ -19,0 +19,0 @@ #### [npm](https://npmjs.org/package/detect-indent) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3743
49