בדוקי עריכות אוטומטית, אינטערפעיס רעדאקטארן, אינטערפעיס אדמיניסטראַטאָרן, סיסאפן, מייבאים, מעדכנים, מייבא, אספקלריה רעדאקטארן
46,362
רעדאגירונגען
ק (מכלוליזאציע) |
אין תקציר עריכה |
||
| שורה 48: | שורה 48: | ||
text = document.getElementById('searchInput'); | text = document.getElementById('searchInput'); | ||
for (i = 0; i < shortcuts.length; i++) { | for (i = 0; i < shortcuts.length; i++) { | ||
var rxEdit = new RegExp('^ | var rxEdit = new RegExp('^ר' + shortcuts[i][0]); | ||
if (rxEdit.test(text.value)) { | if (rxEdit.test(text.value)) { | ||
text.value = text.value.replace(rxEdit, shortcuts[i][1]); | text.value = text.value.replace(rxEdit, shortcuts[i][1]); | ||
| שורה 54: | שורה 54: | ||
return false; | return false; | ||
} | } | ||
var rxHistory = new RegExp('^ | var rxHistory = new RegExp('^ה' + shortcuts[i][0]); | ||
if (rxHistory.test(text.value)) { | if (rxHistory.test(text.value)) { | ||
text.value = text.value.replace(rxHistory, shortcuts[i][1]); | text.value = text.value.replace(rxHistory, shortcuts[i][1]); | ||
רעדאגירונגען