Skip to content

Commit

Permalink
Fix GISUtils time string function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Cykyrios committed Jul 28, 2024
1 parent 30454a7 commit 54da157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gis_utils.gd
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static func convert_time(value: float, from: TimeUnit, to: TimeUnit) -> float:
## Returns a time value in seconds from a time string in format "hh:mm:ss.dd". Validation is not
## performed, strings such as "62:70.5" are considered valid and will return 3790.5 seconds. Hours
## and minutes can be omitted is they are leading zeros.
static func get_seconds_from_time_strings(time: String) -> float:
static func get_seconds_from_time_string(time: String) -> float:
var regex := RegEx.create_from_string(r"(?:(\d+):)?(?:(\d+):)?(\d+)(.\d*)?")
var regex_match := regex.search(time)
if not regex_match:
Expand Down

0 comments on commit 54da157

Please sign in to comment.