RegEx Test Issue on WKWebkit || OS 12.0 || iPhone XS

Hi Team


We are using the below Regex pattern to to validate the input


RegExp("^[ A-Za-z0-9.,/-]{1,18}$","g");


The Javascript match() method is being to test the input keyed in by user


For the below input, the test fails on iPhone XS - OS 12.0 (and most of the recent iPhones) ) whereas it works fine on other phone which has OS 10.3.*


"Test--Issue"


Note: This works fine in Android device, Safari and Chrome as well


Could you please check this out ?


Thanks

Ganapathi