Fix invalid js duration pattern
Fix issue with duration scan method