Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

feature request: allow basic javascript in find and replace function #417

@Billybobbonnet

Description

@Billybobbonnet

Hello,

My issue is quite simple, I have a list of countries in ISO 3166-1 alpha-2 format. here is how it looks:

{
  "name": "Afghanistan",
  "code": "AF",
  "country-code": "004"
}, {
  "name": "Åland Islands",
  "code": "AX",
  "country-code": "248"
}, {
  "name": "Albania",
  "code": "AL",
  "country-code": "008"
},

I want to change all the codes to their lowercase equivalent. I can select them using a simple regex find string "[A-Z]{2}"

I would love a way to apply a matchedString.toLowerCase() on every string matched by my regex. Or maybe something like this.toLowerCase();

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions