matej_suchanek added subscribers: Lucas_Werkmeister_WMDE, Ladsgroup, Addshore.
matej_suchanek added a comment.


  name=data-values\time\src\ValueParsers\YearMonthTimeParser.php
    $logger = \MediaWiki\Logger\LoggerFactory::getInstance( 
'MyCoolLoggingChannel' );
    $logger->debug( 'stringParse: {value}', [ 'value' => $value ] );
    // Matches year and month separated by a separator.
    // \p{L} matches letters outside the ASCII range.
    if ( !preg_match( '/^(-?[\d\p{L}]+)\s*?[\/\-\s.,]\s*(-?[\d\p{L}]+)$/', 
trim( $value ), $matches ) ) {
      throw new ParseException( 'Failed to parse year and month', $value, 
self::FORMAT_NAME );
    }
    $logger->debug( 'stringParse: ok' );
  
  F32139630: obrazek.png <https://phabricator.wikimedia.org/F32139630>
  
  Works for some months but not for all. The `\p{L} matches letters outside the 
ASCII range.` trick apparently doesn't work.
  @Lucas_Werkmeister_WMDE @Addshore @Ladsgroup Could you help?

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

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

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

Reply via email to