Page MenuHomePhabricator

Validation failed: Negative pattern matched: /^\s|[\r\n\t]|\s$/ when trying to add label and description via special page
Closed, ResolvedPublic


I am trying to add an english label and description to Q1639828 using the special page (since I am doing mobile editing).

But I get a validation error and don't see how what I am entering could be problematic and trigger this

Special page works ok on other items.

Event Timeline

aude raised the priority of this task from to Medium.
aude updated the task description. (Show Details)
aude added a project: Wikidata.
aude added a subscriber: aude.

problem is that the validators used do not tolerate trailing white space nor does the string get normalized for this before validation

Change 250030 had a related patch set uploaded (by Aude):
Trim whitespace from input in Special:SetLabelDescriptionAliases

aude set Security to None.
aude added a subscriber: Wikidata-Sprint-2015-10-13.

Change 250030 merged by jenkins-bot:
Trim whitespace from input in Special:SetLabelDescriptionAliases