diff --git a/web_full_stack/js/README.md b/web_full_stack/js/README.md index 49cf119..48be678 100644 --- a/web_full_stack/js/README.md +++ b/web_full_stack/js/README.md @@ -3,7 +3,7 @@ JavaScript Code Extension The JS Code Extension is a React application created using [create-react-app](https://github.com/facebook/create-react-app). Tests are written using [enzyme](https://github.com/airbnb/enzyme) and [react-router](https://github.com/ReactTraining/react-router) manages routing. # Setup -You'll need [yarn](https://yarnpkg.com/en/) installed and a recent version (>= 10) of [Node](https://nodejs.org/en/) to use this project. If you're using homebrew you can brew install both of those or if you want to manage multiple versions of node on your machine, we suggest using a tool like [nodenv](https://github.com/nodenv/nodenv). +You'll need [yarn](https://yarnpkg.com/en/) installed and a version of [Node](https://nodejs.org/en/) between v10 and v16, inclusive, to use this project. If you're using homebrew you can brew install both of those or if you want to manage multiple versions of node on your machine, we suggest using a tool like [nodenv](https://github.com/nodenv/nodenv). * `yarn install` to install dependencies. diff --git a/web_full_stack/js/src/CategoriesPage.js b/web_full_stack/js/src/CategoriesPage.js index f189116..ecee797 100644 --- a/web_full_stack/js/src/CategoriesPage.js +++ b/web_full_stack/js/src/CategoriesPage.js @@ -17,7 +17,7 @@ function filteredCategories(categories, query) { if (!query) { return categories }; return categories.filter((category) => { - return category.full_name.match(new RegExp(query, 'i')); + return category.full_name.toLowerCase().includes(query.toLowerCase()); }); }