Socket
Socket
Sign inDemoInstall

pos

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pos - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

6

lexer.js

@@ -12,4 +12,2 @@ /*!

var re = {
// http://daringfireball.net/2010/07/improved_regex_for_matching_urls
url: /\b(?:(?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\((?:[^\s()<>]+|(?:\([^\s()<>]+\)))*\))+(?:\((?:[^\s()<>]+|(?:\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig,
number: /[0-9]*\.[0-9]+|[0-9]+/ig,

@@ -79,4 +77,4 @@ space: /\s+/ig,

function Lexer(){
// Split by urls, then numbers, then whitespace, then punctuation
this.regexs = [re.url, re.number, re.space, re.punctuation];
// Split by then numbers, then whitespace, then punctuation
this.regexs = [re.number, re.space, re.punctuation];
}

@@ -83,0 +81,0 @@

@@ -7,3 +7,3 @@ {

"author": "Percy Wegmann",
"version": "0.1.6",
"version": "0.1.7",
"licenses": [{

@@ -10,0 +10,0 @@ "type": "LGPL",

@@ -66,3 +66,2 @@ ABOUT:

UH Interjection oh, oops
URL url http://www.google.com/
VB verb, base form eat

@@ -69,0 +68,0 @@ VBD verb, past tense ate

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