Skip to content

Commit

Permalink
Release 3.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
weiqiangliu committed Aug 8, 2023
1 parent 1402735 commit ebbb76a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SensorsAnalyticsSDK/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<groupId>com.sensorsdata.analytics.javasdk</groupId>
<name>SensorsAnalyticsSDK</name>
<artifactId>SensorsAnalyticsSDK</artifactId>
<version>3.6.4</version>
<version>3.6.5</version>
<description>The official Java SDK of Sensors Analytics</description>
<url>http://sensorsdata.cn</url>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ private SensorsConst() {
/**
* 当前JDK版本号,注意要和pom文件里面的version保持一致
*/
public static final String SDK_VERSION = "3.6.4";
public static final String SDK_VERSION = "3.6.5";
/**
* 当前语言类型
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public EventRecord build() throws InvalidArgumentException {
throw new InvalidArgumentException("The isLoginId is empty.");
}
SensorsAnalyticsUtil.assertKey("event_name",eventName);
SensorsAnalyticsUtil.assertProperties("property", propertyMap);
SensorsAnalyticsUtil.assertValue("distinct_id", distinctId);
String message = String.format("[distinct_id=%s,event_name=%s,is_login_id=%s]",distinctId,eventName,isLoginId);
trackId = SensorsAnalyticsUtil.getTrackId(propertyMap, message);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
@Slf4j
public class SensorsAnalyticsUtil {
public static final Pattern KEY_PATTERN = Pattern.compile(
"^((?!^distinct_id$|^original_id$|^time$|^properties$|^id$|^first_id$|^second_id$|^users$|^events$|^event$|^user_id$|^date$|^datetime$|^user_group|^user_tag)[a-zA-Z_$][a-zA-Z\\d_$]{0,99})$",
"^((?!^distinct_id$|^original_id$|^event_id$|^device_id$|^time$|^properties$|^id$|^first_id$|^second_id$|^users$|^events$|^event$|^user_id$|^date$|^datetime$|^user_group|^user_tag)[a-zA-Z_$][a-zA-Z\\d_$]{0,99})$",
Pattern.CASE_INSENSITIVE);

public static String strJoin(String[] arr, String sep) {
Expand Down

0 comments on commit ebbb76a

Please sign in to comment.