-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor regex matching and handle default IDs
Simplified the logic for extracting talkgroup and radio IDs from filenames by using ternary operator for regex selection and adding a default fallback ID for NBFM usage. This change ensures IDs are always set, either to a value from the filename or to a default one, thus avoiding potential unhandled cases where no ID could be extracted. Also, streamlined conditionals and removed redundancy in boolean flag checks for transcription methods to enhance code readability. Resolves an issue with handling filenames lacking proper formatting.
- Loading branch information
swiftraccoon
committed
Dec 21, 2023
1 parent
0b44b5a
commit 31c9c01
Showing
1 changed file
with
27 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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