提交 23bdcebe 编写于 作者: M Matt Bierner

Fix undefined access exception

上级 de6af75d
......@@ -56,7 +56,7 @@ export class WebResources {
while (match = this._regexp.exec(target.textContent)) {
const remoteUrl = match[2];
positions.push(match.index! + 'url('.length + match[1].length);
positions.push(match.index! + 'url('.length + (typeof match[1] === 'string' ? match[1].length : 0));
positions.push(remoteUrl.length);
if (this._cache.has(remoteUrl)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册