When I use the search engine, I do not take into account the first letter unless I capitalize it, I'm using vue.js, vue-cli webpack
With the following code I make the search work:
computed: {
filteredPacks: function(){
return this.packs.filter((pack) => {
return pack.name.match(this.search);
})
}
},
With this input I do the search:
<input type="text" v-model="search" placeholder="search">
and this is what I do look for:
<div class="card-body">
<h4 class="card-title">{{pack.name.toUpperCase()}}</h4>
</div>
But when I do the search like this, it shows me what I need:
On the other hand, if I want to find what has the letter a or something with a lowercase letter, I do not take into account the one that starts with a capital A [! [enter the description of the image here] [2]] [2]
What is going wrong?