-
Improvement
-
Resolution: Fixed
-
Normal
-
None
-
None
-
None
The identifier modal should make an educated guess when pasting URLs.
This should be achievable with the use of more elaborate regular expressions.
If pasted a URL, it should be pretty straightforward to extract the identifier
- Example: https://www.wikidata.org/wiki/Q150827
- Current regexp:
^Q\d+$
- Proposed regexp:
^(?:(?:(https?):\/\/)?(?:www\.)?wikidata\.org\/wiki\/)?Q\d+$
- This will match http://www.… and https://www… and also wikidata.org/… and also the identifier by itself