diff --git a/python/l10n/fluent_migrations/bug_1814261_mixed_content_identity_panel.py b/python/l10n/fluent_migrations/bug_1814261_mixed_content_identity_panel.py new file mode 100644 index 000000000000..a135870df8cd --- /dev/null +++ b/python/l10n/fluent_migrations/bug_1814261_mixed_content_identity_panel.py @@ -0,0 +1,49 @@ +# Any copyright is dedicated to the Public Domain. +# http://creativecommons.org/publicdomain/zero/1.0/ + +import fluent.syntax.ast as FTL + +from fluent.migrate.transforms import TransformPattern + + +class STRIP_LEARNMORE(TransformPattern): + # Used to remove `SOME TEXT` from a string + def visit_TextElement(self, node): + link_start = node.value.find('