Skip to content

Copy & Paste validation rules in asset container separates rule in CP and yaml-file. #14750

Description

@helloDanuk

Bug description

If you copy and paste the string mimes:jpg,jpeg,png,webp to the validation rules for an asset container it immediately appears as:
Image
Image

If you type the whole rule by hand before hitting Enter, it works fine.

How to reproduce

  • Copy & Paste mimes: jpg,jpeg,png, webp to validation rules for an asset container.

Logs

Environment

Environment
Laravel Version: 12.60.2
PHP Version: 8.4.19
Composer Version: 2.9.5
Environment: stage
Debug Mode: ENABLED
Maintenance Mode: OFF
Timezone: UTC
Locale: de_CH

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: background
Session: file

Storage
public/storage: NOT LINKED

Statamic
Addons: 4
License Key: Not set
Sites: 1
Stache Watcher: Disabled (auto)
Static Caching: Disabled
Version: 6.20.0 PRO

Statamic Addons
daun/statamic-original-filename: 1.1.1
mitydigital/statamic-llms-txt: 1.0.0
mitydigital/statamic-sticky-notes: 2.0.0
statamic/seo-pro: 7.9.2

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

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