Socket
Socket
Sign inDemoInstall

ret

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ret - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

18

lib/util.js

@@ -47,3 +47,3 @@ var types = require('./types')

var tokens = []
, regexp = /\\(?:(w)|(d)|(s)|(W)|(D)|(S)|(.))|(.-[^\]])|(\])|(.)/g
, regexp = /\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?(.)/g
, rs, c

@@ -72,4 +72,11 @@ ;

} else if (c = rs[7] || rs[10]) {
} else if (rs[7]) {
tokens.push({
type: types.RANGE
, from: (rs[8] || rs[9]).charCodeAt(0)
, to: rs[10].charCodeAt(0)
});
} else if (c = rs[12]) {
tokens.push({
type: types.CHAR

@@ -79,9 +86,2 @@ , value: c.charCodeAt(0)

} else if (c = rs[8]) {
tokens.push({
type: types.RANGE
, from: c.charCodeAt(0)
, to: c.charCodeAt(2)
});
} else {

@@ -88,0 +88,0 @@ return [tokens, regexp.lastIndex];

@@ -5,3 +5,3 @@ {

"keywords": ["regex", "regexp", "regular expression", "parser", "tokenizer"],
"version": "0.1.4",
"version": "0.1.5",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

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