Skip to content
This repository was archived by the owner on Oct 1, 2018. It is now read-only.
This repository was archived by the owner on Oct 1, 2018. It is now read-only.

Multiple wildcard in url is broken #26

@tdelmas

Description

@tdelmas

According to the documentation https://github.com/nordnet/cordova-universal-links-plugin#path path with multiple wildcard are valid
Example :
<path url="*mypath*" />

But the generated AndroidManifest contains :
<data android:pathPattern="/.*mypath*"/>
(note the missing point before the last wildcard)

I think that line is responsible :
https://github.com/nordnet/cordova-universal-links-plugin/blob/master/hooks/lib/android/manifestWriter.js#L301

pathName = pathName.replace('*', '.*');

It should be :

pathName = pathName.replace(/\*/g, '.*');

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions