Skip to content

Commit

Permalink
Merge pull request #155 from ef4/regex-failing-test
Browse files Browse the repository at this point in the history
Incorrectly parses some regular expressions
  • Loading branch information
NullVoxPopuli authored Oct 22, 2023
2 parents ce4c24a + f332c23 commit 5f98905
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/integration/gjs-test.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,9 @@ module('tests/integration/components/gjs', function (hooks) {

assert.equal(this.element.textContent.trim(), 'Hello, world!');
});

test('it is not confused by a template-tag-like regex', async function (assert) {
let pattern = /<template\s*>/;
assert.ok(pattern);
});
});

0 comments on commit 5f98905

Please sign in to comment.