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 committed Aug 7, 2023
1 parent c6cff6a commit 5ee606f
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 5ee606f

Please sign in to comment.