ext/curl/curl.js
function convertPathMatcher (cfg) {
				var pathMap = cfg.pathMap;
				cfg.pathRx = new RegExp('^(' +
					cfg.pathList.sort(function (a, b) { return pathMap[b].specificity - pathMap[a].specificity; } )
						.join('|')
						.replace(/\/|\./g, '\\$&') +
					')(?=\\/|$)'
				);
				delete cfg.pathList;
			}
function convertPathMatcher (cfg) {
				var pathMap = cfg.pathMap;
				cfg.pathRx = new RegExp('^(' +
					cfg.pathList.sort(function (a, b) { return pathMap[b].specificity - pathMap[a].specificity; } )
						.join('|')
						.replace(/\/|\./g, '\\$&') +
					')(?=\\/|$)'
				);
				delete cfg.pathList;
			}
function convertPathMatcher ( cfg ) { var pathMap = cfg . pathMap ; cfg . pathRx = new RegExp ( '^(' + cfg . pathList . sort ( function ( a , b ) { return pathMap [ b ] . specificity - pathMap [ a ] . specificity ; } ) . join ( '|' ) . replace ( / \/|\. / g , '\\$&' ) + ')(?=\\/|$)' ) ; delete cfg . pathList ; }
adds the path matching regexp onto the cfg or plugin cfgs.
adds the path matching regexp onto the cfg or plugin cfgs .