mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-25 09:25:12 +00:00
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/575 Closes #580 Approved-by: Marie <marie@kaifa.ch> Approved-by: Tess K <me@thvxl.se>
This commit is contained in:
commit
c344705d67
1 changed files with 3 additions and 4 deletions
|
@ -5,10 +5,9 @@ function iconsReplace(opts: RollupReplaceOptions) {
|
||||||
return pluginReplace({
|
return pluginReplace({
|
||||||
...opts,
|
...opts,
|
||||||
preventAssignment: false,
|
preventAssignment: false,
|
||||||
// only replace these strings at the start of strings, remove a
|
// only replace these strings at the start of strings, and make
|
||||||
// `ti-fw` it if happens to be just after, and make sure they're
|
// sure they're followed by a word-boundary that's not a dash
|
||||||
// followed by a word-boundary that's not a dash
|
delimiters: ['(?<=["\'`])', '\\b(?!-)'],
|
||||||
delimiters: ['(?<=["\'`])', '(?: ti-fw)?\\b(?!-)'],
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue