mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-29 10:02:14 +00:00
Fix minor code defects
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
This commit is contained in:
parent
461cfab115
commit
22c8ca389e
4 changed files with 22 additions and 19 deletions
|
|
@ -245,9 +245,9 @@ TemporalObject::DateTime TemporalObject::parseValidIso8601String(ExecutionState&
|
|||
|
||||
try {
|
||||
bool end = false;
|
||||
bool monthDay = false;
|
||||
if (isoString.at(index) != 'T' && isoString.find('-') != std::string::npos) {
|
||||
// Date
|
||||
bool monthDay = false;
|
||||
if (isoString.rfind("−", index) == 0 && TemporalObject::isNumber(isoString.substr(3 + index, 4))) {
|
||||
dateTime.year = std::stoi("-" + isoString.substr(3 + index, 4));
|
||||
index += 7;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue