r104008 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104007‎ | r104008 | r104009 >
Date:08:00, 23 November 2011
Author:amire80
Status:ok
Tags:
Comment:
Regular expressions fixes.
Modified paths:
  • /trunk/extensions/Narayam/resources/ext.narayam.rules.ru-standard.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Narayam/resources/ext.narayam.rules.ru-standard.js
@@ -39,7 +39,7 @@
4040 ['M', '', 'Ь'],
4141 ['<', '', 'Б'],
4242 ['>', '', 'Ю'],
43 -['?', '', ','],
 43+['\\?', '', ','],
4444
4545 ['q', '', 'й'],
4646 ['w', '', 'ц'],
@@ -51,8 +51,8 @@
5252 ['i', '', 'ш'],
5353 ['o', '', 'щ'],
5454 ['p', '', 'з'],
55 -['[', '', 'х'],
56 -[']', '', 'ъ'],
 55+['\\[', '', 'х'],
 56+['\\]', '', 'ъ'],
5757 ['a', '', 'ф'],
5858 ['s', '', 'ы'],
5959 ['d', '', 'в'],
@@ -72,7 +72,7 @@
7373 ['n', '', 'т'],
7474 ['m', '', 'ь'],
7575 [',', '', 'б'],
76 -['.', '', 'ю'],
 76+['\\.', '', 'ю'],
7777 ['/', '', '.'],
7878
7979 ['`', '', 'ё'],
@@ -81,7 +81,7 @@
8282 ['!', '', '!'], // 1
8383 ['@', '', '"'], // 2
8484 ['#', '', '№'], // 3
85 -['$', '', ';'], // 4
 85+['\\$', '', ';'], // 4
8686 // '%' is the same // 5
8787 ['^', '', ':'], // 6
8888 ['&', '', '?'], // 7
@@ -92,7 +92,7 @@
9393 jQuery.narayam.addScheme( 'ru-standard', {
9494 'namemsg': 'narayam-ru-standard',
9595 'extended_keyboard': false,
96 - 'lookbackLength': 4,
97 - 'keyBufferLength': 2,
 96+ 'lookbackLength': 0,
 97+ 'keyBufferLength': 0,
9898 'rules': rules
9999 } );

Follow-up revisions

RevisionCommit summaryAuthorDate
r104012Followup to r104008, just comments.amire8010:01, 23 November 2011

Status & tagging log