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

assemblyscript-regex

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assemblyscript-regex - npm Package Compare versions

Comparing version 1.6.0 to 1.6.1

8

assembly/__tests__/regex.spec.ts

@@ -158,1 +158,9 @@ import { RegExp } from "..";

});
describe("error cases", () => {
it("throws an explicit error when there is nothing to repeat", () => {
expect(() => {
let foo = new RegExp("*m", ""); // eslint-disable-line no-invalid-regexp
}).toThrow("Invalid regular expression: Nothing to repeat");
});
});

4

assembly/parser/parser.ts

@@ -254,2 +254,6 @@ import { isDigit, Char, isHexadecimalDigit } from "../char";

} else if (isQuantifier(token)) {
if (nodes.length === 0) {
throw new Error("Invalid regular expression: Nothing to repeat");
}
const expression = nodes.pop();

@@ -256,0 +260,0 @@ const quantifier = this.eatToken();

2

package.json
{
"name": "assemblyscript-regex",
"version": "1.6.0",
"version": "1.6.1",
"description": "A regex engine built with AssemblyScript",

@@ -5,0 +5,0 @@ "ascMain": "assembly/index.ts",

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