You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
320 B

2 months ago
import getRouteFromAssetPath from "../shared/lib/router/utils/get-route-from-asset-path";
export default function matchBundle(regex, input) {
const result = regex.exec(input);
if (!result) {
return null;
}
return getRouteFromAssetPath(`/${result[1]}`);
}
//# sourceMappingURL=match-bundle.js.map