Skip to content

Commit

Permalink
added test for regex control chars
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed Mar 21, 2023
1 parent 94104e9 commit 6818a06
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/soul-name/validate.test.ts
Expand Up @@ -21,6 +21,12 @@ describe("Soul Name", () => {
assert(length === 1, length.toString());
});

it("|.soul should be invalid!", () => {
const { isValid, message, length } = validateSoulName(testMasa, "|");
assert(isValid === valid, message);
assert(length === 1, length.toString());
});

it("\u{200d}.soul should be invalid!", () => {
const { isValid, message, length } = validateSoulName(
testMasa,
Expand Down

0 comments on commit 6818a06

Please sign in to comment.