Skip to content

Function: normalizeUri() ​

normalizeUri(uri): string

Defined in: packages/react-native-spritestudio/src/core/assets.ts:74

uri with ., .. and empty segments collapsed, scheme and root intact.

.. is collapsed here rather than left to whoever opens the file, because image_path is authored relative to the .ssae and ../images/common.png is an ordinary thing for a pack to contain — and AAssetManager_open does not resolve one.

Parameters ​

uri ​

string

Returns ​

string