Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ep_readability

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ep_readability - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

8

package.json
{
"name": "ep_readability",
"version": "0.0.8",
"version": "0.0.9",
"description": "Calculates the Flesch readability index in Etherpad, client based.",

@@ -18,7 +18,3 @@ "author": {

"etherpad"
],
"readme": "# 1 Click to calculate the FLESCH readability factor\r\nThere'll be a button. Push it.\r\n\r\nColours indicate the readability. \r\n\r\nNumeric values detail the readability:\r\n\r\na) Negative numbers or around \"0\" indicate texts which are very difficult to read.\r\n\r\nb) Numbers around \"100\" indicate very easy texts.\r\n\r\n# Install\r\n\r\nOn the command line, run `npm install ep_readability`.\r\n\r\nAlternatively, browse to `http://yourEtherpadliteInstan.ce/admin/plugins`, search for `ep_readability` and click install.\r\n\r\nAfter restarting the server, the plugin takes effect.\r\n\r\n# License\r\nMIT",
"readmeFilename": "README.md",
"_id": "ep_readability@0.0.7",
"_from": "ep_readability@"
]
}

@@ -13,7 +13,7 @@ // ----------------------------------------------------------------------------

// all these tags should be preceeded by a full stop.
var fullStopTags = ['li', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'dd'];
/*var fullStopTags = ['li', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'dd'];
fullStopTags.forEach(function(tag) {
text = text.replace("</" + tag + ">",'.');
})
text = text.replace("<"+tag+"[^<]>\.+</" + tag + ">",'.');
})*/
// 1. Remove HTML entities @TODO add more entities

@@ -25,3 +25,3 @@ // 2. Remove Etherpad spans

text = text.replace(/<div[^>]*>([^<]+[^:,!?.-])<\/div>/gm, "$1.");
// This is not Etherpad specific:

@@ -28,0 +28,0 @@ // @TODO Add URL matcher

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