mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-31 14:17:28 +01:00
Sync with 3.3.5a
This commit is contained in:
@@ -297,12 +297,12 @@ Optional<std::shared_ptr<ScriptModule>>
|
||||
static bool HasValidScriptModuleName(std::string const& name)
|
||||
{
|
||||
// Detects scripts_NAME.dll's / .so's
|
||||
static std::regex const regex(
|
||||
static Trinity::regex const regex(
|
||||
Trinity::StringFormat("^%s[sS]cripts_[a-zA-Z0-9_]+\\.%s$",
|
||||
GetSharedLibraryPrefix(),
|
||||
GetSharedLibraryExtension()));
|
||||
|
||||
return std::regex_match(name, regex);
|
||||
return Trinity::regex_match(name, regex);
|
||||
}
|
||||
|
||||
/// File watcher responsible for watching shared libraries
|
||||
@@ -1509,8 +1509,8 @@ void LibraryUpdateListener::handleFileAction(efsw::WatchID watchid, std::string
|
||||
/// Returns true when the given path has a known C++ file extension
|
||||
static bool HasCXXSourceFileExtension(fs::path const& path)
|
||||
{
|
||||
static std::regex const regex("^\\.(h|hpp|c|cc|cpp)$");
|
||||
return std::regex_match(path.extension().generic_string(), regex);
|
||||
static Trinity::regex const regex("^\\.(h|hpp|c|cc|cpp)$");
|
||||
return Trinity::regex_match(path.extension().generic_string(), regex);
|
||||
}
|
||||
|
||||
SourceUpdateListener::SourceUpdateListener(fs::path path, std::string script_module_name)
|
||||
|
||||
Reference in New Issue
Block a user