Replace all usages of prototype.gsub with .replace #2172
Replies: 4 comments
-
if i'm not mistaken we should use replaceAll instead of replace |
Beta Was this translation helpful? Give feedback.
-
Actually maybe there's almost nothing to do here because:
The only files we've to change are the ones in js/mage/adminhtml/wysiwyg right? |
Beta Was this translation helpful? Give feedback.
-
Why are issues like this converted to discussion? Its a valid issue |
Beta Was this translation helpful? Give feedback.
-
If it is a valid issue we can "Create issue from discussions". As a personal observation, the Discussions section was created recently. If it had been created some time ago we would not have faced in the Issues section a mixture of situations and here I am referring to ideas, questions, issues, requests for help. It can be seen that through a joint effort both Issues and PR sections were almost halved in just one month and posts are analyzed daily. It is unfortunate that many threads have been left behind for years and no conclusion has been reached because in the meantime many authors and contributors are no longer active on GitHub. |
Beta Was this translation helpful? Give feedback.
-
https://www.tutorialspoint.com/prototype/prototype_string_gsub.htm
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace
example: https://github.com/OpenMage/magento-lts/pull/2051/files
Beta Was this translation helpful? Give feedback.
All reactions