Fixed regex of js patterns for testcases