avm2: Use rsplit_once instead of split_once

This commit is contained in:
EmperorBale 2021-08-28 22:33:49 -07:00 committed by kmeisthax
parent 830c2b541f
commit 358e0641eb
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ impl<'gc> QName<'gc> {
/// NAMESPACE.LOCAL_NAME (Where the LAST dot is used to split the namespace & local_name)
/// LOCAL_NAME (Use the public namespace)
pub fn from_qualified_name(name: &str, mc: MutationContext<'gc, '_>) -> Self {
if let Some((package_name, local_name)) = name.split_once("::") {
if let Some((package_name, local_name)) = name.rsplit_once("::") {
Self {
ns: Namespace::Package(AvmString::new(mc, package_name.to_string())),
name: AvmString::new(mc, local_name.to_string()),