Skip to content

Commit a39bca0

Browse files
author
BaoZhou
committed
style: 去除浏览器内核版本后的多余的空格
1 parent d80c0db commit a39bca0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Android/dokit/src/main/java/com/didichuxing/doraemonkit/util/DokitDeviceUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ public static String getWebViewChromeVersion(Context context) {
414414
WebView webView = new WebView(context);
415415
String userAgentString = webView.getSettings().getUserAgentString();
416416
webView.destroy();
417-
List<String> matches = RegexUtils.getMatches("(?<=Chrome/)[.0-9]* (?=Mobile)", userAgentString);
417+
List<String> matches = RegexUtils.getMatches("(?<=Chrome/)[.0-9]*(?= Mobile)", userAgentString);
418418
if (matches.isEmpty()) {
419419
return null;
420420
} else {

0 commit comments

Comments
 (0)