patternfly / patternfly-quickstarts

Repository containing the PatternFly Quick Start extension code
MIT License
15 stars 38 forks source link

Need to update regex for {{copy}} Multiline Clipboard Copy on patternfly QuickStarts #178

Closed abhinandan13jan closed 2 years ago

abhinandan13jan commented 2 years ago

Issue

Multiline clipboard {{copy}} fails to render correctly in case of indentation

Fix

The regex for {{execute}} command has been updated in Openshift Console

From regex: /```[\n]((.*?\n)+)```{{execute}}/g,
to regex: /```[\n]\s*((((?!```).)*?\n)+)\s*```{{execute}}/g,

Reference

Refer https://github.com/openshift/console/pull/11572 for fixing

https://bugzilla.redhat.com/show_bug.cgi?id=2077138

abhinandan13jan commented 2 years ago

We need this in. Any timeline when this is expected to be fixed?