diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.cpp | 10 | ||||
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.cpp index 0e1784fe8f..eefb0b5bc6 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.cpp @@ -1065,10 +1065,10 @@ bool ISO8601Parser::parse_time_spec() return true; } -// https://tc39.es/proposal-temporal/#prod-TimeHourMinuteBasicFormatNotAmbiguous -bool ISO8601Parser::parse_time_hour_minute_basic_format_not_ambiguous() +// https://tc39.es/proposal-temporal/#prod-TimeHourMinuteBasicFormatNotAmbiguousWithMonthDay +bool ISO8601Parser::parse_time_hour_minute_basic_format_not_ambiguous_with_month_day() { - // TimeHourMinuteBasicFormatNotAmbiguous : + // TimeHourMinuteBasicFormatNotAmbiguousWithMonthDay : // TimeHourNotValidMonth TimeMinute // TimeHour TimeMinuteNotValidDay // TimeHourNotThirtyOneDayMonth TimeMinuteThirtyOneOnly @@ -1111,7 +1111,7 @@ bool ISO8601Parser::parse_time_spec_with_optional_time_zone_not_ambiguous() // TimeHour TimeZoneNumericUTCOffsetNotAmbiguousWithDayOfMonth[opt] TimeZoneBracketedAnnotation[opt] // TimeHourNotValidMonth TimeZone // TimeHour : TimeMinute TimeZone[opt] - // TimeHourMinuteBasicFormatNotAmbiguous TimeZoneBracketedAnnotation[opt] + // TimeHourMinuteBasicFormatNotAmbiguousWithMonthDay TimeZoneBracketedAnnotation[opt] // TimeHour TimeMinute TimeZoneNumericUTCOffsetNotAmbiguousWithMonth TimeZoneBracketedAnnotation[opt] // TimeHour : TimeMinute : TimeSecond TimeFraction[opt] TimeZone[opt] // TimeHour TimeMinute TimeSecondNotValidMonth TimeZone[opt] @@ -1172,7 +1172,7 @@ bool ISO8601Parser::parse_time_spec_with_optional_time_zone_not_ambiguous() } { StateTransaction transaction { *this }; - if (parse_time_hour_minute_basic_format_not_ambiguous()) { + if (parse_time_hour_minute_basic_format_not_ambiguous_with_month_day()) { (void)parse_time_zone_bracketed_annotation(); transaction.commit(); return true; diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.h b/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.h index 6a01204600..4694053ec4 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.h +++ b/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.h @@ -145,7 +145,7 @@ public: [[nodiscard]] bool parse_calendar_name(); [[nodiscard]] bool parse_calendar(); [[nodiscard]] bool parse_time_spec(); - [[nodiscard]] bool parse_time_hour_minute_basic_format_not_ambiguous(); + [[nodiscard]] bool parse_time_hour_minute_basic_format_not_ambiguous_with_month_day(); [[nodiscard]] bool parse_time_spec_with_optional_time_zone_not_ambiguous(); [[nodiscard]] bool parse_time_spec_separator(); [[nodiscard]] bool parse_date_time(); |