Skip to content

Commit

Permalink
01-04 tasks fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
uryadov1998 committed Sep 5, 2020
1 parent f108699 commit f49cd6a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions task/05-regex-tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
* @return {RegExp}
*/
function getRegexForGuid() {
//"\+[0-9]{3}-[0-9]{2}-[0-9]{7}"
return new RegExp("{[A-Fa-f0-9]{8}-([A-Fa-f0-9]{4}-){3}[A-Fa-f0-9]{12}}");
throw new Error('Not implemented');
}


Expand Down Expand Up @@ -73,9 +72,7 @@ function getRegexForPitSpot() {
* @return {RegExp}
*/
function getRegexForIPv4() {
//return new RegExp("([0-9]{1,3}.){3}[0-9]{1,3}");
return new RegExp("([0-255].){3}[0-255]");

throw new Error('Not implemented');
}


Expand All @@ -94,7 +91,7 @@ function getRegexForIPv4() {
* @return {RegExp}
*/
function getRegexForSSN() {
return new RegExp("[0-9]{3}-[0-9]{2}-[0-9]{4}");
throw new Error('Not implemented');
}


Expand Down

0 comments on commit f49cd6a

Please sign in to comment.