Skip to content

Commit

Permalink
lowercase and uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
langz committed Dec 19, 2024
1 parent 1fff832 commit d96abce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,7 @@ class AutocompleteInstance extends React.PureComponent {
.filter(({ word, wordIndex }) => {
if (searchNumbers) {
// Remove all other chars, except numbers, so we can compare
word = word.replace(/[^\d\wøå]/g, '')
word = word.replace(/[^\d\wÆØÅæøå]/g, '')
} else {
// To ensure we escape regex chars
word = escapeRegexChars(word)
Expand Down Expand Up @@ -1474,7 +1474,7 @@ class AutocompleteInstance extends React.PureComponent {

if (searchNumbers) {
word.split('').forEach((char) => {
if (/[\d\wøå]/.test(char)) {
if (/[\d\wÆØÅæøå]/.test(char)) {
segment = segment.replace(
new RegExp(`(${char})`, 'gi'),
`${strS}$1${strE}`
Expand Down

0 comments on commit d96abce

Please sign in to comment.