YITechnology / YIOpenAPI

YI Open API provides mobile SDKs and reference designs for software developers and hardware makers to build cool apps and products with YI 4K Action Cameras
Other
346 stars 77 forks source link

The regular expression in GetFileListCommand is incorrect #66

Open akgordon opened 7 years ago

akgordon commented 7 years ago

The Regular Expression seems to be incorrect and is cause for the getFileList not working and always return empty set.

final class GetFileListCommand extends ActionCameraCommand { private static Pattern fileSizeAndTimePattern = Pattern.compile("^(\d+) bytes\|(\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d)$");

Should be ""^(\d+) bytes|(\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d)$"

Asad1234567 commented 6 years ago

can't able to edit the jar file.