electricessence / TypeScript.NET

A JavaScript-Friendly .NET Based TypeScript Library (Moved)
https://github.com/electricessence/TypeScript.NET-Core
Other
251 stars 36 forks source link

Regular Expression #73

Closed vikaskeskar11 closed 5 years ago

vikaskeskar11 commented 5 years ago

I am trying to execute regex.matches(expression) , but during execution I'm getting error as

Can not read length of undefined

I found the fix, but need's to edit the library

electricessence commented 5 years ago

Will investigate and fix. Can you provide a sample expression that causes it?

vikaskeskar11 commented 5 years ago

\b(?<h>\d{1,2})((\:00)?(?<m>(\:\d{1,2}){0,2})) ?(AM\.|am\.|A\.M\.|AM|am) Regex

5 AM 5AM

Expression

electricessence commented 5 years ago

Great... will look into it today...

electricessence commented 5 years ago

This is now fixed. You're lucky this was a simple change. :P I've been rewriting the whole lib now that 3.x is out and it's incredibly painful to update the older version. Hope that helps!!! Thanks for finding this!!!

vikaskeskar11 commented 5 years ago

It's working fine now. Thanks