lib/require.js
function(url) {
			var paths = this.paths;
			for(var index = 0; index < paths.length; index++) {
				var path = paths[index];
				if (path === url.substring(0, path.length)) {
					return url.substring(path.length);
				}
			}
			return url;
		}
function(url) {
			var paths = this.paths;
			for(var index = 0; index < paths.length; index++) {
				var path = paths[index];
				if (path === url.substring(0, path.length)) {
					return url.substring(path.length);
				}
			}
			return url;
		}
function ( url ) { var paths = this . paths ; for ( var index = 0 ; index < paths . length ; index ++ ) { var path = paths [ index ] ; if ( path === url . substring ( 0 , path . length ) ) { return url . substring ( path . length ) ; } } return url ; }
Find the `url` supplied, relative to the first matching base path.
Find the url supplied relative to the first matching base path .