Skip to content

Commit

Permalink
add string literal case
Browse files Browse the repository at this point in the history
  • Loading branch information
errorrik committed Apr 29, 2021
1 parent 0bc0af5 commit 8a734d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/main-module.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe("Main Module", function () {
});

it("parseExpr with a static string", function () {
expect(san.parseExpr('"aaa\\nbbb"').value).toBe('aaa\nbbb');
expect(san.parseExpr('"aaa\\3\\n\\r\\f\\b\\t\\v\\u8279\\x2bbbb"').value).toBe('aaa3\n\r\f\b\t\v\u8279\x2bbbb');
});

it("parseExpr not support assign expr, just parse left hand", function () {
Expand Down

0 comments on commit 8a734d6

Please sign in to comment.