Skip to content

Commit

Permalink
replace base64 regex string (#1919)
Browse files Browse the repository at this point in the history
* replace base64 regex string

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

---------

Co-authored-by: SalmanAhmed <[email protected]>
  • Loading branch information
salba360496 and SalmanAhmed authored Jun 14, 2024
1 parent 8518233 commit 082cea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flutter_quill_extensions/lib/utils/patterns.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
RegExp base64RegExp = RegExp(
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})$',
);

final imageRegExp = RegExp(
Expand Down

0 comments on commit 082cea9

Please sign in to comment.