replace base64RegExp String due to app crash in release mode, throws stack overflow error

pull/1919/head
SalmanAhmed 10 months ago
parent 95cbcec9d1
commit 8104de9cc0
  1. 2
      flutter_quill_extensions/lib/utils/patterns.dart

@ -1,6 +1,4 @@
RegExp base64RegExp = RegExp(
// Change the Regex String due to app crash on relase mode when the base64 string is too long
// r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=|[A-Za-z0-9+\/]{4})$',
r'^(?:[A-Za-z0-9+\/][A-Za-z0-9+\/][A-Za-z0-9+\/][A-Za-z0-9+\/])*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=|[A-Za-z0-9+\/]{4})$',
);

Loading…
Cancel
Save