Created
August 25, 2024 19:35
-
-
Save robertmryan/bd789a414ea564c61e48e7f7f85a1024 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func VTT2SRT() { | |
let targetPattern = /(?<timeStamp>\d\d:\d\d:\d\d)\./ | |
var vtt = vttText.replacing(targetPattern) { $0.timeStamp + "," } | |
// … | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment