2

The snippet below works for me: let mystring = '+971333344550'; let reg = /\+971([\d]{9})/; let matches = mystring.match(reg); if (matches.length>0) { console.log('the number if valid'); }


2

Yes, You can use the npm package in your Magento custom module. I used @imgix/js-core. It is a JavaScript library for generating image URLs with srcset. I followed the below steps for using the @imgix/js-core npm package in my custom module. Step1: Go to your web directory in your module. app/code/Vendor/Module/view/adminhtml/web Step2: Run the below ...


1

(MySQL) UTF-8 doesn't support all emojis. I guess you have to change the effected DB columns to "utf8mb4" There is a good description on SE: How to store Emoji Character in My SQL Database Just copy&paste from there, but this is important. My answer only adds to Selvamani P answer. You might also need to change any SET NAMES utf8 queries with ...


1

Try the below method. $(document).on('submit', '#reorder-validate-detail', function () { alert('form submitted'); });


Only top voted, non community-wiki answers of a minimum length are eligible