|
1 |
| -import { ClearableEmitter, RegistryProvider } from '../index.js' |
2 |
| -import { LangDefinition } from '../../schema/assets/lang.js' |
| 1 | +import { InferIds, RegistryId } from '@pssbletrngle/data-modifier/generated' |
3 | 2 | import { Acceptor, arrayOrSelf } from '@pssbletrngle/pack-resolver'
|
| 3 | +import { mapValues, omitBy } from 'lodash-es' |
| 4 | +import { Id, IdInput, createId, encodeId } from '../../common/id.js' |
4 | 5 | import { Predicate } from '../../common/ingredient.js'
|
| 6 | +import Registry from '../../common/registry.js' |
5 | 7 | import { Replacer } from '../../parser/recipe/index.js'
|
6 |
| -import { mapValues, omitBy } from 'lodash-es' |
| 8 | +import { LangDefinition } from '../../schema/assets/lang.js' |
7 | 9 | import { toJson } from '../../textHelper.js'
|
8 |
| -import { createId, encodeId, Id, IdInput } from '../../common/id.js' |
9 |
| -import Registry from '../../common/registry.js' |
10 |
| -import { InferIds, RegistryId } from '@pssbletrngle/data-modifier/generated' |
| 10 | +import { ClearableEmitter, RegistryProvider } from '../index.js' |
11 | 11 |
|
12 | 12 | type LangRule = Readonly<{
|
13 | 13 | languages: string[]
|
@@ -104,7 +104,7 @@ export default class LangEmitter implements LangRules, ClearableEmitter {
|
104 | 104 | replacer: it => it.replaceAll(match, matcher),
|
105 | 105 | })
|
106 | 106 | } else {
|
107 |
| - this.replaceValue(new RegExp(match, 'i'), value) |
| 107 | + this.replaceValue(new RegExp(match, 'i'), value, options) |
108 | 108 | }
|
109 | 109 | } else {
|
110 | 110 | this.rules.push({ languages, mods, value: it => match.test(it), replacer: it => it.replace(match, matcher) })
|
|
0 commit comments