fixed getExtension regex of ResourceLocation