You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			25 lines
		
	
	
		
			686 B
		
	
	
	
		
			JavaScript
		
	
		
		
			
		
	
	
			25 lines
		
	
	
		
			686 B
		
	
	
	
		
			JavaScript
		
	
| 
											9 months ago
										 | "use strict"; | ||
|  | Object.defineProperty(exports, "__esModule", { | ||
|  |     value: true | ||
|  | }); | ||
|  | Object.defineProperty(exports, "default", { | ||
|  |     enumerable: true, | ||
|  |     get: function() { | ||
|  |         return matchBundle; | ||
|  |     } | ||
|  | }); | ||
|  | const _getroutefromassetpath = /*#__PURE__*/ _interop_require_default(require("../shared/lib/router/utils/get-route-from-asset-path")); | ||
|  | function _interop_require_default(obj) { | ||
|  |     return obj && obj.__esModule ? obj : { | ||
|  |         default: obj | ||
|  |     }; | ||
|  | } | ||
|  | function matchBundle(regex, input) { | ||
|  |     const result = regex.exec(input); | ||
|  |     if (!result) { | ||
|  |         return null; | ||
|  |     } | ||
|  |     return (0, _getroutefromassetpath.default)(`/${result[1]}`); | ||
|  | } | ||
|  | 
 | ||
|  | //# sourceMappingURL=match-bundle.js.map
 |