Bug fix: incorrect regular expression pattern
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.2.9" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
+<plugin id="cordova-plugin-googlemaps" version="2.3.0-beta-20180327-1057" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-googlemaps</name>
<js-module name="BaseClass" src="www/BaseClass.js">
<runs />
@@ -117,8 +117,9 @@ The native map view is faster, use less network usage, display 3D views, and eve
<engine name="apple-ios" version=">=10.0.0" />
</engines>
+ <hook type="before_plugin_add" src="src/before_plugin_install.js" />
<hook type="before_plugin_install" src="src/before_plugin_install.js" />
- <hook type="after_plugin_install" src="src/after_plugin_install.js" />
+ <!--<hook type="after_plugin_install" src="src/after_plugin_install.js" />-->
<hook type="before_plugin_rm" src="src/before_plugin_rm.js" />
<!-- android -->

MODIFY
src/ios/GoogleMaps/CordovaGoogleMaps.m
src/ios/GoogleMaps/CordovaGoogleMaps.m
NSDictionary *info = [[NSBundle mainBundle] infoDictionary];
NSString *CFBundleExecutable = [info objectForKey:@"CFBundleExecutable"];
- NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"^[a-zA-Z0-9$@$!%*?&#^-_.\\s+]+$" options:NSRegularExpressionCaseInsensitive error:nil];
+ NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"^[a-zA-Z0-9$@$!%*?&#^\\-_.\\s+]+$" options:NSRegularExpressionCaseInsensitive error:nil];
if ([regex numberOfMatchesInString:CFBundleExecutable options:0 range:NSMakeRange(0, CFBundleExecutable.length)] == 0) {
NSString *APP_NAME_ERROR_TITLE = [PluginUtil PGM_LOCALIZATION:@"APP_NAME_ERROR_TITLE"];

Bug fix: incorrect regular expression pattern