diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-09 18:06:48 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-09 18:06:48 +0100 |
commit | 907298d673723d7d957c382647dedde66c29ecd2 (patch) | |
tree | 62537ac5e18b24834e8231a57a73e20ea4ec1535 /modules/regex | |
parent | 597e0c0fb9c4bd725dae1fca75875ec4c936079f (diff) | |
parent | e79be6ce07ed8c89011f759ecade070a3bd5a806 (diff) |
Merge pull request #68747 from rune-scape/rune-stringname-unification
GDScript: Unify StringName and String
Diffstat (limited to 'modules/regex')
-rw-r--r-- | modules/regex/regex.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/regex/regex.cpp b/modules/regex/regex.cpp index c808211d68..6f02d20c25 100644 --- a/modules/regex/regex.cpp +++ b/modules/regex/regex.cpp @@ -50,8 +50,7 @@ int RegExMatch::_find(const Variant &p_name) const { return -1; } return i; - - } else if (p_name.get_type() == Variant::STRING) { + } else if (p_name.get_type() == Variant::STRING || p_name.get_type() == Variant::STRING_NAME) { HashMap<String, int>::ConstIterator found = names.find((String)p_name); if (found) { return found->value; |