Addshore added a comment.

  The only real option that I see working if we want to allow whitespace values 
in the UI is....
  
  - Have a list of whitespace chars that we want to trim
  - If a string is made up ONLY of these whitespace chars, do not trim
  - If a string has these whitespace chars at the beginning or end, and also 
has other chars, trim them?
  
  If the cases of having whitespace at the start or end is all covered by the 
“only whitespace” case, then we can just add this validation in the API, and if 
commons calls this api (as it should) then this would fix both issues. T251380 
<https://phabricator.wikimedia.org/T251380> and this

TASK DETAIL
  https://phabricator.wikimedia.org/T47925

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Addshore
Cc: Addshore, Herzi.Pinki, MichaelSchoenitzer, Billinghurst, Esc3300, 
ChristianKl, thiemowmde, Ricordisamoa, Aklapper, adrianheine, Snaterlicious, 
Mushroom, Lydia_Pintscher, daniel, Raymond, Invadibot, maantietaja, Akuckartz, 
Dinadineke, DannyS712, Nandana, lucamauri, tabish.shaikh91, Lahi, Gq86, 
GoranSMilovanovic, Soteriaspace, Jayprakash12345, JakeTheDeveloper, QZanden, 
merbst, LawExplorer, _jensen, rosalieper, Scott_WUaS, Jonas, Wikidata-bugs, 
aude, TheDJ, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to