Comparing version 0.1.6 to 0.1.7
@@ -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 |
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
4035690
298050
84