Skip to content

Commit

Permalink
Merge pull request #20 from Noriller/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Noriller authored May 1, 2023
2 parents ce44a43 + afbaf0c commit 930816a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 6 additions & 0 deletions src/EasyFilter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
});
4 changes: 2 additions & 2 deletions src/EasyFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ export default function EasyFilter(
return {
/**
* Call `search` with your query string to filter the source array.
* @param string - Your query string.
* @param {string} string - Your query string.
* @returns the filtered source array.
*
* @remarks
* Returns objects with the reference of the source unless using indexing.
*
* @see README for everything that can be passed in the query string.
*/
search: (string) => search(string, source, parser),
search: (string: string) => search(string, source, parser),
};
}

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 930816a

Please sign in to comment.