interpolationPattern function

RegExp interpolationPattern(
  1. I18NextOptions options
)

Implementation

RegExp interpolationPattern(I18NextOptions options) {
  final prefix = RegExp.escape(options.interpolationPrefix ?? '{{');
  final suffix = RegExp.escape(options.interpolationSuffix ?? '}}');
  return RegExp('$prefix(.*?)$suffix', dotAll: true);
}