AhsanAyaz/ngx-device-detector

don't work on IE11 Invalid character

hkkhchan opened this issue · 3 comments

const MOBILES_RE = { // tslint:disable-next-line:max-line-length HTC: /HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/, NEXUS_PHONE: /Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/, DELL: /Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/, MOTOROLA: new RegExp(Motorola|DROIDX|DROID BIONIC|\bDroid\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|`

show error invalid character

Could you share which Angular version are you using @hkkhchan ?

Could you share which Angular version are you using @hkkhchan ?

I use Angular 8. I found this error cause by my node-module folder. If I build the project on others computer. It work. I think It may be caused by Angular Icy but I'm not sure.

I think it may be better to avoid useing the character ` because it 's not support by ie11.

Makes sense. For IE11, make sure you're using the polyfills as mentioned in the Readme.
Since you're not able to reproduce it on other machines, I'm closing the issue.