Don't exclude slashes when parsing URLs for identifier rules

Not sure why I had excluded the slash as a valid character in the identifier. There are a few sites that do this.
This commit is contained in:
David 2021-12-14 15:03:45 +11:00
parent aed39272af
commit 616d9bfbbb

View File

@ -1710,7 +1710,7 @@ class IdentifiersEdit(QLineEdit, ToMetadataMixin):
rules = msprefs['id_link_rules']
if rules:
formatter = EvalFormatter()
vals = {'id' : '(?P<new_id>[^/]+)'}
vals = {'id' : '(?P<new_id>.+)'}
for key in rules.keys():
rule = rules[key]
for name, template in rule: