# A workspace pattern isn't valid

What "a workspace pattern isn't valid" means and how to fix it.

```text
error: the pattern "packages/[a" in pnpm-workspace.yaml isn't a valid pattern: unclosed character class; missing ']'
hint: Fix the pattern, then run axle again. Use * for one folder level and ** for any number.
```

## Why it happens

A pattern in `pnpm-workspace.yaml` or in the `workspaces` field of `package.json` can't be read as a glob, for example because a `[` or `{` is never closed.

## How to fix it

Fix the pattern. The [glob patterns](https://axlers.dev/docs/reference/globs.md) page shows what each symbol means.
