Changeset 14292 in josm for trunk/scripts


Ignore:
Timestamp:
2018-10-04T13:07:28+02:00 (6 years ago)
Author:
stoecker
Message:

handle https/http for icons as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/SyncEditorLayerIndex.groovy

    r14149 r14292  
    780780                myprintln "- No JOSM icon: ${getDescription(j)}"
    781781            } else if(!ij.equals(ie) && !(
    782               ie.startsWith("https://osmlab.github.io/editor-layer-index/") &&
    783               ij.startsWith("data:"))) {
    784                 myprintln "* Different icons: ${getDescription(j)}"
     782                ie.startsWith("https://osmlab.github.io/editor-layer-index/") &&
     783                ij.startsWith("data:"))) {
     784                    def iehttps = ie.replace("http:","https:")
     785                    if(ij.equals(iehttps)) {
     786                        myprintln "+ Different icons: ${getDescription(j)}"
     787                    } else {
     788                        myprintln "* Different icons: ${getDescription(j)}"
     789                    }
    785790            }
    786791        }
Note: See TracChangeset for help on using the changeset viewer.