Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE-172] Implement the new datetime format functionality #174

Merged

Conversation

jama5262
Copy link
Owner

What does this PR do?

Implement the new datetime format functionality

Resolves #172
Resolves #72

@jama5262 jama5262 changed the base branch from master to develop December 30, 2022 13:14
Comment on lines -90 to +95
Pattern _matchesOrdinalDates(List<String> ordinals) {
return RegExp(r'(?<=[0-9])(?:' + ordinals.join('|') + ')');
String _matchesOrdinalDates(String input, List<String> ordinals) {
final matches =
RegExp(r'\d+\s*(' + ordinals.join('|') + ')').allMatches(input);
return matches.isNotEmpty ? matches.first.group(1) ?? '' : '';
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolves issue #72

@jama5262 jama5262 merged commit 8e28251 into develop Dec 30, 2022
@jama5262 jama5262 deleted the ISSUE-172_worki_on_implementing_the_format_functionailty branch December 30, 2022 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Work in implementing the format functionality Jiffy in Flutter Web problem in iOSX
1 participant