Socket
Socket
Sign inDemoInstall

textlint-rule-en-capitalization

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

textlint-rule-en-capitalization - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

5

lib/textlint-rule-en-capitalization.js

@@ -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 @@

2

package.json

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc