From cbbd3c8b52d7d72198c09f07dcff6eddfc4dbf1c Mon Sep 17 00:00:00 2001 From: Bruno Date: Mon, 1 May 2023 12:34:54 -0300 Subject: [PATCH 1/2] fix: :bug: updating dependencie fixes #15 --- package.json | 2 +- src/EasyFilter.spec.ts | 6 ++++++ yarn.lock | 8 ++++---- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index d1634a6..0f2c9ff 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "packPublish:publish": "yarn packPublish && yarn publish ./out/*.tgz" }, "dependencies": { - "@noriller/easy-filter-parser": "^1.0.0" + "@noriller/easy-filter-parser": "^1.0.1" }, "devDependencies": { "@commitlint/cli": "^12.1.4", diff --git a/src/EasyFilter.spec.ts b/src/EasyFilter.spec.ts index 3378069..eaf7beb 100644 --- a/src/EasyFilter.spec.ts +++ b/src/EasyFilter.spec.ts @@ -134,5 +134,11 @@ describe('EasyFilterIssues', () => { const result = ef_index.search('not(id:2) id:3'); expect(result).toHaveLength(1); }); + + it('should search using a tag inside quotes', () => { + const result = ef.search("'id:2'"); + expect(result).not.toHaveLength(0); + expect(result).toHaveLength(1); + }); }); }); diff --git a/yarn.lock b/yarn.lock index ff2054d..273c19d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -692,10 +692,10 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" -"@noriller/easy-filter-parser@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@noriller/easy-filter-parser/-/easy-filter-parser-1.0.0.tgz#5a736ba775c7d63a6f7fa82fd22c5d786686f0f0" - integrity sha512-W2vFwPDSuJwb0hn0oeInCVgBU3sYECqUzqAdDJ8imMY28Vw4JjVO2YcVZU775libo35f3pZJk9ryMY6AJPTIOg== +"@noriller/easy-filter-parser@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@noriller/easy-filter-parser/-/easy-filter-parser-1.0.1.tgz#461ac301b2c120cd18b92dbf3e86ef352686e550" + integrity sha512-ujQEXxkgLd4juRRz68y8XHaiWqBvUmzqatEGNbGP1ncjITYv0jhFGw+/9zmCXVZoEOPlDCxHk/i4vwVAcggKLw== "@sinonjs/commons@^1.7.0": version "1.8.3" From 4fe4d5db907ad7271d897ad562cb8d03dc1d79c8 Mon Sep 17 00:00:00 2001 From: Bruno Date: Mon, 1 May 2023 12:36:22 -0300 Subject: [PATCH 2/2] ci: :green_heart: bump node to lts --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 23cc1ea..5439151 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: '14.15.0' + node-version: '18.15.0' - name: Install run: yarn install - name: Linter @@ -26,7 +26,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: '14.15.0' + node-version: '18.15.0' - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)"