Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web_full_stack/js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion web_full_stack/js/src/CategoriesPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
});
}

Expand Down