diff --git a/LinkTitles.body.php b/LinkTitles.body.php index 02a6a4b..bd484d3 100755 --- a/LinkTitles.body.php +++ b/LinkTitles.body.php @@ -104,17 +104,30 @@ global $wgLinkTitlesSmartMode; global $wgCapitalLinks; - ( $wgLinkTitlesWordStartOnly ) ? $wordStartDelim = '\b' : $wordStartDelim = ''; - ( $wgLinkTitlesWordEndOnly ) ? $wordEndDelim = '\b' : $wordEndDelim = ''; + // Use unicode character properties rather than \b escape sequences + // to detect whole words containing non-ASCII characters as well. + // Note that this requires the use of the '/u' switch, and you need + // to have PHP with a PCRE library that was compiled with + // --enable-unicode-properties + ( $wgLinkTitlesWordStartOnly ) ? $wordStartDelim = '(?= 0 ) && ( $count > 0 )) { break; @@ -227,7 +240,7 @@ // even indexes will point to text that is not enclosed by brackets $arr[$i] = preg_replace_callback( '/(?= 0 ) && ( $count > 0 )) { break; diff --git a/LinkTitles.php b/LinkTitles.php index c82e704..6eb9214 100755 --- a/LinkTitles.php +++ b/LinkTitles.php @@ -195,7 +195,7 @@ 'name' => 'LinkTitles', 'author' => '[https://www.mediawiki.org/wiki/User:Bovender Daniel Kraus]', 'url' => 'https://www.mediawiki.org/wiki/Extension:LinkTitles', - 'version' => '3.0.0', + 'version' => '3.0.1', 'descriptionmsg' => 'linktitles-desc' ); diff --git a/NEWS b/NEWS index dc65b83..76ce5e5 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,7 @@ +LinkTitles 3.0.1: 2014-09-03 +* Fix several bugs in template handling. +* Ignore
and similar sections that span multiple lines. + LinkTitles 3.0.0: 2014-06-13 * Dramatically improved performance (especially apparent during batch processing). diff --git a/release.sh b/release.sh index 7f0cda0..c852b76 100755 --- a/release.sh +++ b/release.sh @@ -19,7 +19,7 @@ tar cvzf $FILENAME gpl-*.txt README.md NEWS *.php --exclude '*~' --transform 's, if [[ $? -eq 0 ]]; then # Add the tarball to the repository, commit it, then tag the commit and push to origin. git add $FILENAME - git commit -m "Release version $1" + git commit -m --amend git tag -a $1 -m "Version $1." git push git push --tags