Skip to content

Commit

Permalink
Add https to special handling in package name derivation
Browse files Browse the repository at this point in the history
  • Loading branch information
muued authored and lukasj committed Sep 5, 2023
1 parent 1116d50 commit 40d9e85
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ public String toConstantName( String token ) {
@Override
public String toPackageName( String nsUri ) {
// remove scheme and :, if present
// spec only requires us to remove 'http' and 'urn'...
// spec only requires us to remove 'http', 'https' and 'urn'...
int idx = nsUri.indexOf(':');
String scheme = "";
if(idx>=0) {
scheme = nsUri.substring(0,idx);
if( scheme.equalsIgnoreCase("http") || scheme.equalsIgnoreCase("urn") )
if( scheme.equalsIgnoreCase("http") || scheme.equalsIgnoreCase("https") || scheme.equalsIgnoreCase("urn") )
nsUri = nsUri.substring(idx+1);
}

Expand Down

0 comments on commit 40d9e85

Please sign in to comment.