مدیاویکی:Gadget-Extra-Editbuttons-persiantools.js: تفاوت میان نسخه‌ها

بدون خلاصۀ ویرایش
(صفحه‌ای تازه حاوی «// <nowiki> // DO NOT REMOVE THIS LINE EVER /** * Persian text style improvement tools * Tests: [[مدیاویکی:Gadget-Extra-Editbutto...» ایجاد کرد)
 
بدون خلاصۀ ویرایش
خط ۳۷۰: خط ۳۷۰:
.replace(/ویکیپدیا/g, 'ویکی‌پدیا')
.replace(/ویکیپدیا/g, 'ویکی‌پدیا')
.replace(new RegExp('می\u200cگوی($|[^' + persianCharacters + '\u200c])', 'g'), 'میگوی$1') // for میگوی دریایی
.replace(new RegExp('می\u200cگوی($|[^' + persianCharacters + '\u200c])', 'g'), 'میگوی$1') // for میگوی دریایی
.replace(new RegExp('می\u200cدوی($|[^' + persianCharacters + '\u200c])', 'g'), 'میدوی$1');// for [[میدوی (ابهام‌زدایی)]]
.replace(new RegExp('می\u200cدوی($|[^' + persianCharacters + '\u200c])', 'g'), 'میدوی$1')// for [[میدوی (ابهام‌زدایی)]]
//ویکی پاسخ
.replace('به[[' , 'به [[')
.replace(' (ع)', '(ع)')
.replace(' (ص)', '(ص)')
.replace(' (س)', '(س)')
.replace(' (عج)', '(عج)')
;
}
}