main ← ux-video-controls
opened 07:14PM - 13 Aug 24 UTC
When adding a video/image/audio to a post, we check the token content for dimens…ions. If dimensions are found, we assume the content can be resized and give it image controls in the composer preview.
The problem is that we check the entire token, including filename, for dimensions. This means if a video has dimensions in its filename, we show broken controls:

This PR updates the `hasMetadata` function so it checks the area dedicated to dimensions specifically, which comes after the `|` in markdown.
Now images get the controls, and videos with dimensions in their filename do not:
