messai-engineering / kyuga Goto Github PK
View Code? Open in Web Editor NEWYuga in multi-platform kotlin, enabling it in iOS and JVM
License: MIT License
Yuga in multi-platform kotlin, enabling it in iOS and JVM
License: MIT License
Existing Yuga used to export the dateFormatter to consumers and this was being used in many applications to parse the output of malana/yuga's text output of date. We need to replicate the same functionality in Kyuga as well
Sample input: 22:55:4
Debug Logs:
ch:2 state:2 map:{NUM=2, TYP=NUM}
ch:2 state:3 map:{NUM=22, TYP=NUM}
ch:: state:4 map:{HH=22, TYP=DATE}
ch:5 state:5 map:{HH=22, mm=5, TYP=DATE}
ch:5 state:5 map:{HH=22, mm=55, TYP=DATE}
ch:: state:6 map:{HH=22, mm=55, TYP=DATE}
ch:4 state:-1 map:{HH=22, mm=55, ss=4, TYP=DATE}
Exception:
String index out of range: 8
java.lang.StringIndexOutOfBoundsException: String index out of range: 8
at java.lang.String.substring(String.java:1963)
at com.twelfthmile.kyuga.Kyuga.prepareResult(kYuga.kt:168)
at com.twelfthmile.kyuga.Kyuga.getResponse(kYuga.kt:128)
at com.twelfthmile.kyuga.Kyuga.parse(kYuga.kt:145)
at com.twelfthmile.kyuga.Kyuga.tokenise(kYuga.kt:77)
at YugaTest.on tokenize - valid offer- should tokenize(YugaTest.kt:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
URL Regex
(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)
Adding couple of regexs
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.