kaimallea/isMobile

Unnecessary backslash in `other_firefox` expression

razzed opened this issue ยท 1 comments

ESLint generates an error for the other_firefox RegExp pattern:

	 Error     19,24: Unnecessary escape character: \M. (no-useless-escape)

The fix is to remove the unnecessary backslash in front of the M here.

- other_firefox = /\Mobile(?:.+)Firefox\b/i; // Match 'Mobile' AND 'Firefox'
+ other_firefox = /Mobile(?:.+)Firefox\b/i; // Match 'Mobile' AND 'Firefox'

I've created a PR to fix this issue.

๐ŸŽ‰ This issue has been resolved in version 1.0.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€