Changeset 13554 in josm


Ignore:
Timestamp:
2018-03-24T00:03:37+01:00 (14 months ago)
Author:
stoecker
Message:

add useless port check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/SyncEditorLayerIndex.groovy

    r13553 r13554  
    779779                else {
    780780                    def domain = m[0][1].replaceAll("\\{switch:.*\\}","x")
     781                    def port = m[0][2]
    781782                    if (!(domain =~ /^\d+\.\d+\.\d+\.\d+$/) && !dv.isValid(domain))
    782783                        myprintln "* Strange Domain '${domain}': ${getDescription(j)}"
     784                    else if (port != null && (port == ":80" || port == ":443")) {
     785                        myprintln "* Useless port '${port}': ${getDescription(j)}"
     786                    }
    783787                }
    784788            }
Note: See TracChangeset for help on using the changeset viewer.