Failing case
Created by: luxedo
The following case is breaking:
{
"msg": "what about \" this? // /* will it break? "
}
I solved by adding escape characters in the string match \.. If you'd like I can open a PR
pattern = '("(\\.|[^"])*?")|(/\*.+?\*/)|(//.+?$)';