This commit is contained in:
Ali MJ Al-Nasrawy 2021-06-28 00:39:21 +03:00
parent c2f3528f82
commit 0d5b80dde4
1 changed files with 2 additions and 2 deletions

View File

@ -252,7 +252,7 @@ impl ResourceDef {
match self.tp {
PatternType::Static(ref s) => {
if s == path.path() {
path.skip(path.len() as u16);
path.skip(path.path().len() as u16);
true
} else {
false
@ -354,7 +354,7 @@ impl ResourceDef {
PatternType::Static(ref s) => {
if s == res.resource_path().path() && check(res, user_data) {
let path = res.resource_path();
path.skip(path.len() as u16);
path.skip(path.path().len() as u16);
true
} else {
false