IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
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.

12 lines
351B

  1. function encodeURIComponentIncludingDots(s) {
  2. return encodeURIComponent(s).replace('.', '%2E');
  3. }
  4. function parseKeepRef(value) {
  5. if (typeof(value) === 'object' && 'location' in value && value.location.startsWith('keep:'))
  6. return value.location.substr(5);
  7. return value;
  8. }
  9. export { encodeURIComponentIncludingDots, parseKeepRef }