mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-04 00:02:03 +08:00
CB-8735: Fixing the regex so that it's more compliant with Java package rules
This commit is contained in:
@@ -27,7 +27,8 @@ describe("create", function () {
|
||||
var valid = [
|
||||
"org.apache.mobilespec"
|
||||
, "com.example"
|
||||
, "com.42floors.package"
|
||||
, "com.floors42.package",
|
||||
, "ball8.ball8.ball8ball",
|
||||
];
|
||||
var invalid = [
|
||||
""
|
||||
@@ -40,6 +41,10 @@ describe("create", function () {
|
||||
, "_underscore.anything"
|
||||
, "underscore._something"
|
||||
, "_underscore._all._the._things"
|
||||
, "8.ball",
|
||||
, "8ball.ball",
|
||||
, "ball8.8ball",
|
||||
, "ball8.com.8ball"
|
||||
];
|
||||
|
||||
valid.forEach(function(package_name) {
|
||||
|
||||
Reference in New Issue
Block a user