mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 09:49:31 +02:00
Fix handling of target titles with numbers.
- Fix: Improve handling of page titles that start or end with numbers.
This commit is contained in:
@ -37,7 +37,7 @@ class TargetTest extends MediaWikiTestCase {
|
||||
|
||||
public static function provideStartOnly() {
|
||||
return [
|
||||
[ true, '(?<!\pL)' ],
|
||||
[ true, '(?<!\pL|\pN)' ],
|
||||
[ false, '' ]
|
||||
];
|
||||
}
|
||||
@ -54,7 +54,7 @@ class TargetTest extends MediaWikiTestCase {
|
||||
|
||||
public static function provideEndOnly() {
|
||||
return [
|
||||
[ true, '(?!\pL)' ],
|
||||
[ true, '(?!\pL|\pN)' ],
|
||||
[ false, '' ]
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user