User talk:Joeytje50/RETF.js
Latest comment: 4 years ago by Oshwah in topic Edit request: Add found rules to the console
Edit request: Add found rules to the console
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I would like to add the following changes, that give the possibility by printing to browser console to know which rules was found, and possibly fix them.
- Just bellow RETF.replace = function(text) {: add line
var rulesList = [];
- Just bellow if (!g1) return match;: add line
rulesList.push(RETF.list[i][2]);
- Just before final return text;: prepend line
console.log('RegEx Typo Fixing: Found rules ' + rulesList.join(', '));
.
Thanks! also @Joeytje50: --Framawiki (please notify) (talk) 21:28, 17 March 2020 (UTC)
- Framawiki - Joeytje50 hasn't edited Wikipedia for over two months. However, looking at your requested changes, they look pretty harmless to me; you're just creating an array, storing strings into it, then listing them in the console log. Hence, I've gone ahead and added these changes for you - the diff is here. Please note that Joeytje50 has the ability to modify or remove the changes you requested here, since this page is within Joeytje50's user space. Happy editing! :-) ~Oshwah~(talk) (contribs) 04:29, 21 March 2020 (UTC)
- Thanks for your edit ~Oshwah~! --Framawiki (please notify) (talk) 18:09, 21 March 2020 (UTC)
- Framawiki - You bet; always happy to help! :-) ~Oshwah~(talk) (contribs) 18:12, 21 March 2020 (UTC)
- Thanks for your edit ~Oshwah~! --Framawiki (please notify) (talk) 18:09, 21 March 2020 (UTC)