Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid regular expression error on delete field #7233

Closed
3 tasks done
plazabjc opened this issue Aug 6, 2021 · 1 comment
Closed
3 tasks done

Invalid regular expression error on delete field #7233

plazabjc opened this issue Aug 6, 2021 · 1 comment

Comments

@plazabjc
Copy link

plazabjc commented Aug 6, 2021

Preflight Checklist

Describe the Bug

I created a field with the following name:

*violence_victim:

on trying to delete the field using the directus vue app I get this error:

{
  "errors": [
    {
      "message": "Invalid regular expression: /\\b*victima_de_violencias:\\b/: Nothing to repeat",
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR"
      }
    }
  ]
}

To Reproduce

  1. Create a field that starts with * and ends with :

  2. Try to delete the field

What version of Directus are you using?

9.0.0-rc.88

What version of Node.js are you using?

v14.15.1

What database are you using?

sqlite

What browser are you using?

Chrome

What operating system are you using?

macOS

How are you deploying Directus?

running locally

@rijkvanzanten
Copy link
Member

This is an issue in knex. I've opened a new issue there 👍🏻 Ref knex/knex#4608

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants