Comparing version 0.1.6 to 0.1.7-1
@@ -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,10 @@ { | ||
"author": "Percy Wegmann", | ||
"version": "0.1.6", | ||
"contributors": [ | ||
{ | ||
"name": "Darius Kazemi", | ||
"email": "darius.kazemi@gmail.com", | ||
"url": "http://tinysubversions.com" | ||
} | ||
], | ||
"version": "0.1.7-1", | ||
"licenses": [{ | ||
@@ -10,0 +17,0 @@ "type": "LGPL", |
@@ -11,4 +11,4 @@ ABOUT: | ||
pos-js was written by [Percy Wegmann](http://www.percywegmann.com/) and | ||
is [available on Google code](http://www.percywegmann.com/). This fork | ||
adds node.js and npm support and is maintained by Fortnight Labs. | ||
is [available on Google code](https://code.google.com/p/jspos/). This fork | ||
adds node.js and npm support. | ||
@@ -67,3 +67,2 @@ LICENSE: | ||
UH Interjection oh, oops | ||
URL url http://www.google.com/ | ||
VB verb, base form eat | ||
@@ -70,0 +69,0 @@ VBD verb, past tense ate |
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
4035824
298050
84