Mbch331 added a comment.

  Found https://stackoverflow.com/questions/26611495/regex-pl-problems
  Solution:
  
    if ( !preg_match( '/^(-?[\d\p{L}]+)\s*?[\/\-\s.,]\s*(-?[\d\p{L}]+)$/u', 
trim( $value ), $matches ) ) {
      throw new ParseException( 'Failed to parse year and month', $value, 
self::FORMAT_NAME );
    }
  
  (Add a u as modifier for the regex)

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

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

To: Mbch331
Cc: Mbch331, Addshore, Ladsgroup, Lucas_Werkmeister_WMDE, Aklapper, 
matej_suchanek, Akuckartz, darthmon_wmde, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to