Comments (4)
This looks like an actual problem. Thanks, I'll look into it.
from aho-corasick.
This is the offending code:
if (trieConfig.isCaseInsensitive()) {
text = text.toLowerCase();
}
By converting to lowercase, the individual character is converted correctly, but the second byte remains behind.
What I now do, is to individually convert characters to lowercase when case-insensitivity is enabled. This passed the test.
from aho-corasick.
released in v0.2.3
from aho-corasick.
Thanks Robert! I'll let you know if there are any problems.
from aho-corasick.
Related Issues (20)
- [Question]How to parse text which does not connected to previous character
- Suggestion: Attachable Metadata to Keyword HOT 1
- Adding RemoveKeyword API HOT 1
- Caveats of ignoreOverlaps() not following the longest, left-most match strategy
- Enquiry on suppression of match
- New versions unavailable on Maven Central HOT 1
- Question about thread safety HOT 2
- Production ready? HOT 1
- Building repeatedly. HOT 1
- Do you plan to upload latest version to Maven Central? HOT 3
- Add a real license file
- PayloadTrie.parseText method inconsistencies
- Missing releases on Maven Central HOT 6
- Release new artifacts to repositories? HOT 3
- onlyWholeWords vs onlyWholeWordsWhiteSpaceSeparated HOT 1
- Build order calls produce different scan-results HOT 1
- some question HOT 1
- Can you release the OpenHarmony OS JS version? HOT 1
- Add Matching Whole Word to the Emit class HOT 1
- NPE when the input text its null. 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 aho-corasick.