-
Notifications
You must be signed in to change notification settings - Fork 219
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
Solution #253
base: master
Are you sure you want to change the base?
Solution #253
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
src/getTime.js
Outdated
@@ -18,7 +18,10 @@ | |||
* @returns {string} - valid time | |||
*/ | |||
function getTime(str) { | |||
// write code here | |||
const reg = RegExp(/\b([01]\d|2[0-3]):[0-5]\d\b/); | |||
const properTime = str.match(reg); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
что такое proper?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
что такое proper?
Корректный. Увидел "valid" в ТЗ, сейчас поменяю
@@ -18,7 +18,10 @@ | |||
* @returns {string} - valid time | |||
*/ | |||
function getTime(str) { | |||
// write code here | |||
const reg = RegExp(/\b([01]\d|2[0-3]):[0-5]\d\b/); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const reg = RegExp(/\b([01]\d|2[0-3]):[0-5]\d\b/); | |
const pattern = RegExp(/\b([01]\d|2[0-3]):[0-5]\d\b/); |
No description provided.