@sveltia/cms 0.27.0 → 0.27.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -137,7 +137,7 @@ We are working hard to create a **significantly better alternative to Netlify CM
137
137
  - You can hide the preview of a specific field with `preview: false`.
138
138
  - Fields with validation errors are automatically expanded if they are part of nested, collapsed objects[^40].
139
139
  - When you click on a field in the Preview pane, the corresponding field in the Editor pane is highlighted. It will be automatically expanded if collapsed[^41].
140
- - You can use a full regular expression, including flags, for the widget `pattern` option[^82]. For example, if you want to allow 280 characters or less in a multiline text field, you could write `/^.{0,280}$/s`.
140
+ - You can use a full regular expression, including flags, for the widget `pattern` option[^82]. For example, if you want to allow 280 characters or less in a multiline text field, you could write `/^.{0,280}$/s` (but you can now use the `maxlength` option instead).
141
141
  - A long validation error message is displayed in full, without being hidden behind the field label[^59].
142
142
 
143
143
  ### Better data output
@@ -342,7 +342,7 @@ Depending on your server or framework’s configuration, when you access the CMS
342
342
 
343
343
  - Access `/admin/index.html` or `/admin/#/`
344
344
  - Rename `/admin/index.html` to `/admin/cms.html`, and access `/admin/cms`
345
- - [Specify the configuration file path](https://decapcms.org/docs/configuration-options/#configuration-file) with a `<link>` tag in the `/admin/index.html`:
345
+ - [Specify the configuration file path](https://decapcms.org/docs/configuration-options/#configuration-file) with a `<link>` tag in `/admin/index.html`:
346
346
  ```html
347
347
  <link href="/admin/config.yml" type="text/yaml" rel="cms-config-url" />
348
348
  ```