commit e7568a692f7322740f756815e71fa474f67b9950
Author: Juergen Spitzmueller <[email protected]>
Date:   Tue Oct 7 07:55:45 2025 +0200

    Amend 321ea63fccdf
    
    More granular regex
---
 lib/lyx2lyx/lyx_2_6.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/lyx2lyx/lyx_2_6.py b/lib/lyx2lyx/lyx_2_6.py
index 73e06193c9..8f184b8ee4 100644
--- a/lib/lyx2lyx/lyx_2_6.py
+++ b/lib/lyx2lyx/lyx_2_6.py
@@ -218,7 +218,7 @@ def convert_refname(document):
         i += 1
 
     # Same for InsetMathRef where this was an optional argument
-    regexp = re.compile(r"(.*)(\\[a-zA-Z]*ref|formatted)(\[\w+\])(.*)")
+    regexp = 
re.compile(r"(.*\\)(ref|pageref|cpageref|vref|vpageref|formatted|prettyref|eqref|nameref|labelonly)(\[\w+\])(.*)")
     i = 0
     while True:
         i = find_token(document.body, "\\begin_inset Formula", i)
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to