Reedy added a comment.
As there's many parts to this... Seemingly you can do "regex validation" in PHP by testing against `null`/`''`, and see if `preg_match` returns `false`. I wonder if WDQC should be doing that before shelling out to shellbox, and display a nice user error somewhere along the line. Rather than using shellbox (or sparql?) to do regex validation... `CheckResult::STATUS_BAD_PARAMETERS` looks like it may work `"The constraint parameters are broken."`; as could a more specific error. Ref: https://stackoverflow.com/questions/4440626/how-can-i-validate-regex TASK DETAIL https://phabricator.wikimedia.org/T362084 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Reedy Cc: Reedy, akosiaris, Clement_Goubert, JMeybohm, Aklapper, Danny_Benjafield_WMDE, Kappakayala, S8321414, Astuthiodit_1, Arnoldokoth, karapayneWMDE, Invadibot, maantietaja, wkandek, ItamarWMDE, Akuckartz, darthmon_wmde, Eihel, Rosalie_WMDE, Nandana, jijiki, Lahi, Gq86, Lucas_Werkmeister_WMDE, GoranSMilovanovic, QZanden, KimKelting, Esc3300, LawExplorer, _jensen, rosalieper, Agabi10, Scott_WUaS, Verdy_p, abian, Wikidata-bugs, aude, Jdforrester-WMF, Mbch331, Jay8g, Legoktm
_______________________________________________ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org