Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在某些android5手机上,解析url的正则出现问题 #899

Closed
yindeqiang opened this issue Dec 1, 2020 · 2 comments
Closed

在某些android5手机上,解析url的正则出现问题 #899

yindeqiang opened this issue Dec 1, 2020 · 2 comments

Comments

@yindeqiang
Copy link

yindeqiang commented Dec 1, 2020

Url.prototype.parse 方法中的

if (!ipv6Hostname) {
            var hostparts = this.hostname.split(/\./);


使用 'www.baidu.com'.split(/\./) 结果为

["w", "w", "w", ".", "b", "a", "i", "d", "u", ".", "c", "o", "m"]

经过测试6.10.0 和 6.11.0的版本没有执行这句split都正常,但6.11.1 和 6.12.2版本出错。

测试手机 coloros v3.0.0 android5.1

@PeterRao
Copy link
Collaborator

PeterRao commented Dec 1, 2020

这个不是android问题,应该是cores-js 劫持了 split 方法导致的bug。我们收到几个类似问题了。

@PeterRao
Copy link
Collaborator

PeterRao commented Dec 3, 2020

通过shime的方式临时解决了下,使用6.12.0版本尝试下

@PeterRao PeterRao closed this as completed Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants