Ignore:
Timestamp:
2014-08-01T19:17:40+02:00 (9 years ago)
Author:
Don-vip
Message:

fix #10206 - Check MapCSS validator assertions for local rules if new advanced option validator.check_assert_local_rules is enabled in preferences

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r7321 r7356  
    10531053    }
    10541054
     1055    /**
     1056     * Determines if the given URL denotes a file on a local filesystem.
     1057     * @param url The URL to test
     1058     * @return {@code true} if the url points to a local file
     1059     * @since 7356
     1060     */
     1061    public static boolean isLocalUrl(String url) {
     1062        if (url.startsWith("http://") || url.startsWith("https://") || url.startsWith("resource://"))
     1063            return false;
     1064        return true;
     1065    }
    10551066}
Note: See TracChangeset for help on using the changeset viewer.