assemblyscript-regex
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -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"); | ||
}); | ||
}); |
@@ -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(); |
{ | ||
"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", |
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
269192
4815