|
|
@ -23,7 +23,7 @@ class ReplaceEditViewModel(application: Application) : BaseViewModel(application |
|
|
|
bundle.getString("pattern")?.let { pattern -> |
|
|
|
bundle.getString("pattern")?.let { pattern -> |
|
|
|
val isRegex = bundle.getBoolean("isRegex") |
|
|
|
val isRegex = bundle.getBoolean("isRegex") |
|
|
|
replaceRuleData.postValue( |
|
|
|
replaceRuleData.postValue( |
|
|
|
ReplaceRule(pattern = pattern, isRegex = isRegex) |
|
|
|
ReplaceRule(name = pattern, pattern = pattern, isRegex = isRegex) |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|