textlint-rule-en-capitalization
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -29,2 +29,7 @@ // MIT © 2017 azu | ||
return true; | ||
} // Can not capitalize word | ||
if (!/^[a-zA-Z]/.test(string)) { | ||
return true; | ||
} // A quotation | ||
@@ -31,0 +36,0 @@ |
@@ -14,3 +14,3 @@ { | ||
"name": "textlint-rule-en-capitalization", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "textlint rule that check capitalization in english text.", | ||
@@ -17,0 +17,0 @@ "main": "lib/textlint-rule-en-capitalization.js", |
@@ -1,2 +0,2 @@ | ||
# textlint-rule-en-capitalization [![Build Status](https://travis-ci.org/textlint-rule/textlint-rule-en-capitalization.svg?branch=master)](https://travis-ci.org/textlint-rule/textlint-rule-en-capitalization) | ||
# textlint-rule-en-capitalization [![Actions Status: test](https://github.com/textlint-rule/textlint-rule-en-capitalization/workflows/test/badge.svg)](https://github.com/textlint-rule/textlint-rule-en-capitalization/actions?query=workflow%3A"test") | ||
@@ -3,0 +3,0 @@ |
@@ -20,2 +20,6 @@ // MIT © 2017 azu | ||
} | ||
// Can not capitalize word | ||
if (!/^[a-zA-Z]/.test(string)) { | ||
return true; | ||
} | ||
// A quotation | ||
@@ -22,0 +26,0 @@ if (!/^\w/.test(string)) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
33688
411