Skip to content

Commit

Permalink
#5188: Fix regex escape characters
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Apr 6, 2020
1 parent f14869c commit 5bee6d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radiant/shaders/ShaderFileLoader.h
Expand Up @@ -38,7 +38,7 @@ template<typename ShaderLibrary_T> class ShaderFileLoader

// Look closer by trying to split up the table name from the decl
// it can still be a material starting with "table_" (#5188)
std::regex expr("^table\s+(.+)$");
std::regex expr("^table\\s+(.+)$");
std::smatch matches;

if (std::regex_match(block.name, matches, expr))
Expand Down

0 comments on commit 5bee6d8

Please sign in to comment.