You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to introduce additional factory functions for creating an instance of Zero from the string representation of Any object.
The regular expression used for validating inputs should be the following: ^(?:-|\+)?0+(?:\.0+)?$.
Here's the explanation associated to each symbol used in this pattern:
^Beginning. Matches the beginning of the string, or the beginning of a line if the multiline flag (m) is enabled.
(?:)Non-capturing group. Groups multiple tokens together without creating a capture group.
-Character. Matches a "-" character (char code 45).
|Alternation. Acts like a boolean OR. Matches the expression before or after the |.
\+Escaped character. Matches a "+" character (char code 43).
?Quantifier. Match between 0 and 1 of the preceding token.
0Character. Matches a "0" character (char code 48).
+Quantifier. Match 1 or more of the preceding token.
\.Escaped character. Matches a "." character (char code 46).
$End. Matches the end of the string, or the end of a line if the multiline flag (m) is enabled.
Here's the Application Programming Interface (API) goal:
📝 Description
We want to introduce additional factory functions for creating an instance of
Zero
from the string representation ofAny
object.The regular expression used for validating inputs should be the following:
^(?:-|\+)?0+(?:\.0+)?$
.Here's the explanation associated to each symbol used in this pattern:
^
Beginning. Matches the beginning of the string, or the beginning of a line if the multiline flag (m) is enabled.(?:)
Non-capturing group. Groups multiple tokens together without creating a capture group.-
Character. Matches a "-" character (char code 45).|
Alternation. Acts like a boolean OR. Matches the expression before or after the|
.\+
Escaped character. Matches a "+" character (char code 43).?
Quantifier. Match between 0 and 1 of the preceding token.0
Character. Matches a "0" character (char code 48).+
Quantifier. Match 1 or more of the preceding token.\.
Escaped character. Matches a "." character (char code 46).$
End. Matches the end of the string, or the end of a line if the multiline flag (m) is enabled.Here's the Application Programming Interface (API) goal:
✅ Checklist
STRING_PATTERN
property with tests, documentation and samples.fromStringOrNull
function with tests, documentation and samples.fromString
function with tests, documentation and samples.The text was updated successfully, but these errors were encountered: