Skip to content

Commit

Permalink
Fix special regex characters causing a crash for auto timers
Browse files Browse the repository at this point in the history
  • Loading branch information
phunkyfish committed Apr 30, 2024
1 parent c2e77b7 commit 32077a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/enigma2/Timers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ void Timers::GenerateChildManualRepeatingTimers(std::vector<Timer>* timers, Time

std::string Timers::ConvertToAutoTimerTag(std::string tag)
{
static const std::regex regex(" ");
// Replace spaces and any special regex characters with underscores
static const std::regex regex(" |\\*|\\?|\\+|\\{");
std::string replaceWith = "_";

return std::regex_replace(tag, regex, replaceWith);
Expand Down

0 comments on commit 32077a4

Please sign in to comment.