Comments (2)
You have the arguments the other way around.
Your pattern is the first argument, and the string you are searching in is your second.
See here for reference.
from fuse-swift.
@krisk The same bug happens randomly for me when the pattern is longer than the string (which happens often in my case but works fine most of the time). Should I prevent such usecase in my code? O is there going to be a release that will handle this case?
from fuse-swift.
Related Issues (20)
- Latest Cocoapod Podspec HOT 1
- MacOS Support HOT 1
- Carthage support HOT 3
- Swift 5 Support w/ Cocoapods HOT 7
- MacOS Support for Carthage HOT 1
- Search through an array of Fuseable objects with a value that is an array HOT 2
- Fuseable FuseProperty.name reports the value rather than the key HOT 1
- Put Package.swift in latest release HOT 1
- Fatal error: Can't form Range with upperBound < lowerBound
- Fuse can't find exact match in longer sting HOT 1
- Did not work while searching in [Fuseable] HOT 1
- Best practices around reusing `Fuse` objects?
- Example 3 not working? HOT 1
- Is this repo still maintained? HOT 4
- Does Fuse Swift contain offer same functionality as Fuse.js?
- Treat words in query as individual queries for more exact results HOT 8
- can support chinese? HOT 1
- Best match
- Range<Index> init issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fuse-swift.