1234567891011121314151617181920212223242526 |
- "use strict";
- module.exports = function (url, options) {
- if (!options) {
-
- options = {};
- }
- url = url && url.__esModule ? url.default : url;
- if (typeof url !== 'string') {
- return url;
- }
- if (options.hash) {
-
- url += options.hash;
- }
- if (options.maybeNeedQuotes && /[\t\n\f\r "'=<>`]/.test(url)) {
- return "\"".concat(url, "\"");
- }
- return url;
- };
|