@magicspace/tslint-rules
Advanced tools
Comparing version 0.1.41 to 0.1.42
@@ -7,3 +7,3 @@ "use strict"; | ||
const ERROR_MESSAGE_EMPTY_LINE_AROUND_STATEMENT_REQUIRED = 'An empty line is expected before the statement.'; | ||
const REGEX_EMPTY_LINE_IN_NON_CODE = /^\s*\n\s*\n+((.|\s)*)/; | ||
const REGEX_EMPTY_LINE_IN_NON_CODE = /\n\s*\n/; | ||
const BlockIncludingNodeValidators = [ | ||
@@ -260,3 +260,3 @@ isBlockIncludingStatement, | ||
let nonCode = node.getFullText().slice(0, nonCodeLength); | ||
if (nonCode.match(REGEX_EMPTY_LINE_IN_NON_CODE)) { | ||
if (REGEX_EMPTY_LINE_IN_NON_CODE.test(nonCode)) { | ||
return true; | ||
@@ -263,0 +263,0 @@ } |
{ | ||
"name": "@magicspace/tslint-rules", | ||
"version": "0.1.41", | ||
"version": "0.1.42", | ||
"description": "Custom TSLint rules for MagicSpace.", | ||
@@ -37,3 +37,3 @@ "repository": "https://github.com/makeflow/magicspace.git", | ||
}, | ||
"gitHead": "58013a303222fb866af0e2299bdbbf662c333261" | ||
"gitHead": "a37b4f6fa5840bfcda972ca95487639a85c8d296" | ||
} |
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
58194