How to use the mdurl.encode.componentChars function in mdurl

To help you get started, we’ve selected a few mdurl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nodeca / nodeca.core / lib / autoload / hooks / responder / response_log.js View on Github external
_.forEach(params, function (value, key) {
      result += result.length ? '&' : '?';
      result += encode(String(key), encode.componentChars);
      result += '=';

      // Don't dump protected params
      if (PROTECTED_PARAMS.indexOf(key) !== -1) result += '****';
      // Do not dump nested objects.
      else if (_.isObject(value)) result += '{...}';
      else result += encode(String(value), encode.componentChars);

      if (result.length > MAX_PARAMS_LOG_LENGTH) {
        result = result.slice(0, MAX_PARAMS_LOG_LENGTH);
        return false; // terminate
      }
    });
github molgenis / molgenis-js-rsql / src / rsql.ts View on Github external
export function encodeRsqlValue(value: string): string {
  return encode(value, encode.componentChars + '=:,;"\'<>#', false)
}
github molgenis / molgenis / molgenis-core-ui / src / main / frontend / src / modules / rest-client / rsql / createRsqlQuery.js View on Github external
export function encodeRsqlValue(str) {
    return encode(str, encode.componentChars + "=:,;\"'<>", false)
}
github molgenis / molgenis-js-rsql / src / rsql.js View on Github external
export function encodeRsqlValue (str) {
  return encode(str, encode.componentChars + "=:,;\"'<>#", false)
}

mdurl

URL utilities for markdown-it

MIT
Latest version published 1 year ago

Package Health Score

65 / 100
Full package analysis

Similar packages