diff --git a/__tests__/nlp/NLPTest.spec.ts b/__tests__/nlp/NLPTest.spec.ts index 76e419e2..5e919bfe 100644 --- a/__tests__/nlp/NLPTest.spec.ts +++ b/__tests__/nlp/NLPTest.spec.ts @@ -245,6 +245,13 @@ describe( 'NLPTest', () => { ); } ); + it( 'xpath with brackets, quotes, at', () => { + recogLiteral( + '', + '//*[@id="event-1684412635"]/span[2]/a' + ); + } ); + } ); diff --git a/dist/__tests__/nlp/NLPTest.spec.js b/dist/__tests__/nlp/NLPTest.spec.js index 138247fb..126bc8b4 100644 --- a/dist/__tests__/nlp/NLPTest.spec.js +++ b/dist/__tests__/nlp/NLPTest.spec.js @@ -173,6 +173,9 @@ describe('NLPTest', () => { it('long, escaped CSS selectors', () => { recogLiteral(' <#js-repo-pjax-container \> div.container.new-discussion-timeline.experiment-repo-nav \> div.repository-content \> div.release-show \> div \> div.release-body.commit.open.float-left \> div.my-4 \> h2>', '#js-repo-pjax-container \> div.container.new-discussion-timeline.experiment-repo-nav \> div.repository-content \> div.release-show \> div \> div.release-body.commit.open.float-left \> div.my-4 \> h2'); }); + it('xpath with brackets, quotes, at', () => { + recogLiteral('', '//*[@id="event-1684412635"]/span[2]/a'); + }); }); describe('does not recognize', () => { it('number', () => {