Skip to content

fix: trim search input value and update license#137

Open
Sigmabrogz wants to merge 1 commit into
GeorgeHop:masterfrom
Sigmabrogz:fix/trim-search-input
Open

fix: trim search input value and update license#137
Sigmabrogz wants to merge 1 commit into
GeorgeHop:masterfrom
Sigmabrogz:fix/trim-search-input

Conversation

@Sigmabrogz

Copy link
Copy Markdown

Summary

This PR addresses two minor issues. It trims the search value to prevent lookup failures caused by accidental trailing or leading spaces, and updates the package.json license field to reflect the actual MIT license.

Problem

Closes #131
Closes #122

Solution

  • Added .trim() to the lowercase search value and dial code check in both filter locations.
  • Changed "license": "ISC" to "license": "MIT" in package.json to match the LICENSE file.

Checklist

  • Code builds without errors
  • Tests pass
  • No additional dependencies required

Closes GeorgeHop#131
Closes GeorgeHop#122

- Applies `.trim()` to the search value and search dial code before filtering countries, fixing search matching when leading/trailing spaces exist.
- Updates `package.json` license from ISC to MIT to match the LICENSE file.
@Sigmabrogz

Copy link
Copy Markdown
Author

Hi, the PR is ready for review. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TextInput value not trimmed in react-native-country-code-picker Wrong license reference in package.json

1 participant