Skip to content

Commit 9564653

Browse files
committed
chore(release): 0.4.3
1 parent 0299b49 commit 9564653

21 files changed

+85
-78
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [0.4.3](https://github.com/jo3-l/obscenity/compare/v0.4.2...v0.4.3) (2025-01-26)
6+
7+
8+
### Bug Fixes
9+
10+
* **preset/english:** match 'shit' at end of word ([0299b49](https://github.com/jo3-l/obscenity/commit/0299b4978dec6d218a4e004fe20962a79500fe7c)), closes [#47](https://github.com/jo3-l/obscenity/issues/47)
11+
512
### [0.4.2](https://github.com/jo3-l/obscenity/compare/v0.4.1...v0.4.2) (2025-01-18)
613

714

docs/reference/README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Context passed to [[TextCensorStrategy | text censoring strategies]].
7777

7878
#### Defined in
7979

80-
[src/censor/TextCensor.ts:104](https://github.com/jo3-l/obscenity/blob/0d1046d/src/censor/TextCensor.ts#L104)
80+
[src/censor/TextCensor.ts:104](https://github.com/jo3-l/obscenity/blob/0299b49/src/censor/TextCensor.ts#L104)
8181

8282
___
8383

@@ -91,7 +91,7 @@ should be a set of characters that map to the transformed character.
9191

9292
#### Defined in
9393

94-
[src/transformer/remap-characters/index.ts:60](https://github.com/jo3-l/obscenity/blob/0d1046d/src/transformer/remap-characters/index.ts#L60)
94+
[src/transformer/remap-characters/index.ts:60](https://github.com/jo3-l/obscenity/blob/0299b49/src/transformer/remap-characters/index.ts#L60)
9595

9696
___
9797

@@ -103,7 +103,7 @@ All the profane words that are included in the [[englishDataset | english datase
103103

104104
#### Defined in
105105

106-
[src/preset/english.ts:415](https://github.com/jo3-l/obscenity/blob/0d1046d/src/preset/english.ts#L415)
106+
[src/preset/english.ts:416](https://github.com/jo3-l/obscenity/blob/0299b49/src/preset/english.ts#L416)
107107

108108
___
109109

@@ -121,7 +121,7 @@ Extends the default match payload by adding phrase metadata.
121121

122122
#### Defined in
123123

124-
[src/dataset/DataSet.ts:190](https://github.com/jo3-l/obscenity/blob/0d1046d/src/dataset/DataSet.ts#L190)
124+
[src/dataset/DataSet.ts:190](https://github.com/jo3-l/obscenity/blob/0299b49/src/dataset/DataSet.ts#L190)
125125

126126
___
127127

@@ -133,7 +133,7 @@ All the possible kinds of nodes.
133133

134134
#### Defined in
135135

136-
[src/pattern/Nodes.ts:24](https://github.com/jo3-l/obscenity/blob/0d1046d/src/pattern/Nodes.ts#L24)
136+
[src/pattern/Nodes.ts:24](https://github.com/jo3-l/obscenity/blob/0299b49/src/pattern/Nodes.ts#L24)
137137

138138
___
139139

@@ -160,7 +160,7 @@ replacement string.
160160

161161
#### Defined in
162162

163-
[src/censor/TextCensor.ts:99](https://github.com/jo3-l/obscenity/blob/0d1046d/src/censor/TextCensor.ts#L99)
163+
[src/censor/TextCensor.ts:99](https://github.com/jo3-l/obscenity/blob/0299b49/src/censor/TextCensor.ts#L99)
164164

165165
## Variables
166166

@@ -221,7 +221,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
221221

222222
#### Defined in
223223

224-
[src/preset/english.ts:103](https://github.com/jo3-l/obscenity/blob/0d1046d/src/preset/english.ts#L103)
224+
[src/preset/english.ts:103](https://github.com/jo3-l/obscenity/blob/0299b49/src/preset/english.ts#L103)
225225

226226
___
227227

@@ -234,7 +234,7 @@ A set of transformers to be used when matching blacklisted patterns with the
234234

235235
#### Defined in
236236

237-
[src/preset/english.ts:13](https://github.com/jo3-l/obscenity/blob/0d1046d/src/preset/english.ts#L13)
237+
[src/preset/english.ts:13](https://github.com/jo3-l/obscenity/blob/0299b49/src/preset/english.ts#L13)
238238

239239
___
240240

@@ -247,7 +247,7 @@ dataset]] and the [[RegExpMatcher]].
247247

248248
#### Defined in
249249

250-
[src/preset/english.ts:48](https://github.com/jo3-l/obscenity/blob/0d1046d/src/preset/english.ts#L48)
250+
[src/preset/english.ts:48](https://github.com/jo3-l/obscenity/blob/0299b49/src/preset/english.ts#L48)
251251

252252
___
253253

@@ -260,7 +260,7 @@ A set of transformers to be used when matching whitelisted terms with the
260260

261261
#### Defined in
262262

263-
[src/preset/english.ts:36](https://github.com/jo3-l/obscenity/blob/0d1046d/src/preset/english.ts#L36)
263+
[src/preset/english.ts:36](https://github.com/jo3-l/obscenity/blob/0299b49/src/preset/english.ts#L36)
264264

265265
## Functions
266266

@@ -299,7 +299,7 @@ to the [[RegExpMatcher]].
299299

300300
#### Defined in
301301

302-
[src/matcher/BlacklistedTerm.ts:37](https://github.com/jo3-l/obscenity/blob/0d1046d/src/matcher/BlacklistedTerm.ts#L37)
302+
[src/matcher/BlacklistedTerm.ts:37](https://github.com/jo3-l/obscenity/blob/0299b49/src/matcher/BlacklistedTerm.ts#L37)
303303

304304
___
305305

@@ -326,7 +326,7 @@ A [[TextCensorStrategy]] for use with the [[TextCensor]].
326326

327327
#### Defined in
328328

329-
[src/censor/BuiltinStrategies.ts:71](https://github.com/jo3-l/obscenity/blob/0d1046d/src/censor/BuiltinStrategies.ts#L71)
329+
[src/censor/BuiltinStrategies.ts:71](https://github.com/jo3-l/obscenity/blob/0299b49/src/censor/BuiltinStrategies.ts#L71)
330330

331331
___
332332

@@ -389,7 +389,7 @@ A container holding the transformer, which can then be passed to the
389389

390390
#### Defined in
391391

392-
[src/transformer/collapse-duplicates/index.ts:46](https://github.com/jo3-l/obscenity/blob/0d1046d/src/transformer/collapse-duplicates/index.ts#L46)
392+
[src/transformer/collapse-duplicates/index.ts:46](https://github.com/jo3-l/obscenity/blob/0299b49/src/transformer/collapse-duplicates/index.ts#L46)
393393

394394
___
395395

@@ -430,7 +430,7 @@ than the first.
430430

431431
#### Defined in
432432

433-
[src/matcher/MatchPayload.ts:57](https://github.com/jo3-l/obscenity/blob/0d1046d/src/matcher/MatchPayload.ts#L57)
433+
[src/matcher/MatchPayload.ts:57](https://github.com/jo3-l/obscenity/blob/0299b49/src/matcher/MatchPayload.ts#L57)
434434

435435
___
436436

@@ -464,7 +464,7 @@ A [[TextCensorStrategy]] for use with the [[TextCensor]].
464464

465465
#### Defined in
466466

467-
[src/censor/BuiltinStrategies.ts:134](https://github.com/jo3-l/obscenity/blob/0d1046d/src/censor/BuiltinStrategies.ts#L134)
467+
[src/censor/BuiltinStrategies.ts:134](https://github.com/jo3-l/obscenity/blob/0299b49/src/censor/BuiltinStrategies.ts#L134)
468468

469469
___
470470

@@ -508,7 +508,7 @@ A [[TextCensorStrategy]] for use with the [[TextCensor]].
508508

509509
#### Defined in
510510

511-
[src/censor/BuiltinStrategies.ts:115](https://github.com/jo3-l/obscenity/blob/0d1046d/src/censor/BuiltinStrategies.ts#L115)
511+
[src/censor/BuiltinStrategies.ts:115](https://github.com/jo3-l/obscenity/blob/0299b49/src/censor/BuiltinStrategies.ts#L115)
512512

513513
___
514514

@@ -537,7 +537,7 @@ A [[TextCensorStrategy]] for use with the [[TextCensor]].
537537

538538
#### Defined in
539539

540-
[src/censor/BuiltinStrategies.ts:89](https://github.com/jo3-l/obscenity/blob/0d1046d/src/censor/BuiltinStrategies.ts#L89)
540+
[src/censor/BuiltinStrategies.ts:89](https://github.com/jo3-l/obscenity/blob/0299b49/src/censor/BuiltinStrategies.ts#L89)
541541

542542
___
543543

@@ -571,7 +571,7 @@ A [[TextCensorStrategy]] for use with the [[TextCensor]].
571571

572572
#### Defined in
573573

574-
[src/censor/BuiltinStrategies.ts:51](https://github.com/jo3-l/obscenity/blob/0d1046d/src/censor/BuiltinStrategies.ts#L51)
574+
[src/censor/BuiltinStrategies.ts:51](https://github.com/jo3-l/obscenity/blob/0299b49/src/censor/BuiltinStrategies.ts#L51)
575575

576576
___
577577

@@ -616,7 +616,7 @@ A [[TextCensorStrategy]] for use with the [[TextCensor]].
616616

617617
#### Defined in
618618

619-
[src/censor/BuiltinStrategies.ts:28](https://github.com/jo3-l/obscenity/blob/0d1046d/src/censor/BuiltinStrategies.ts#L28)
619+
[src/censor/BuiltinStrategies.ts:28](https://github.com/jo3-l/obscenity/blob/0299b49/src/censor/BuiltinStrategies.ts#L28)
620620

621621
___
622622

@@ -651,7 +651,7 @@ The parsed pattern, which can then be used with the
651651

652652
#### Defined in
653653

654-
[src/pattern/Pattern.ts:130](https://github.com/jo3-l/obscenity/blob/0d1046d/src/pattern/Pattern.ts#L130)
654+
[src/pattern/Pattern.ts:130](https://github.com/jo3-l/obscenity/blob/0299b49/src/pattern/Pattern.ts#L130)
655655

656656
___
657657

@@ -784,7 +784,7 @@ The parsed pattern, which can then be used with the
784784

785785
#### Defined in
786786

787-
[src/pattern/Pattern.ts:106](https://github.com/jo3-l/obscenity/blob/0d1046d/src/pattern/Pattern.ts#L106)
787+
[src/pattern/Pattern.ts:106](https://github.com/jo3-l/obscenity/blob/0299b49/src/pattern/Pattern.ts#L106)
788788

789789
___
790790

@@ -819,7 +819,7 @@ A [[TextCensorStrategy]] for use with the [[TextCensor]].
819819

820820
#### Defined in
821821

822-
[src/censor/BuiltinStrategies.ts:156](https://github.com/jo3-l/obscenity/blob/0d1046d/src/censor/BuiltinStrategies.ts#L156)
822+
[src/censor/BuiltinStrategies.ts:156](https://github.com/jo3-l/obscenity/blob/0299b49/src/censor/BuiltinStrategies.ts#L156)
823823

824824
___
825825

@@ -879,7 +879,7 @@ A container holding the transformer, which can then be passed to the
879879

880880
#### Defined in
881881

882-
[src/transformer/remap-characters/index.ts:38](https://github.com/jo3-l/obscenity/blob/0d1046d/src/transformer/remap-characters/index.ts#L38)
882+
[src/transformer/remap-characters/index.ts:38](https://github.com/jo3-l/obscenity/blob/0299b49/src/transformer/remap-characters/index.ts#L38)
883883

884884
___
885885

@@ -912,7 +912,7 @@ A container holding the transformer, which can then be passed to the
912912

913913
#### Defined in
914914

915-
[src/transformer/resolve-confusables/index.ts:22](https://github.com/jo3-l/obscenity/blob/0d1046d/src/transformer/resolve-confusables/index.ts#L22)
915+
[src/transformer/resolve-confusables/index.ts:22](https://github.com/jo3-l/obscenity/blob/0299b49/src/transformer/resolve-confusables/index.ts#L22)
916916

917917
___
918918

@@ -946,7 +946,7 @@ A container holding the transformer, which can then be passed to the
946946

947947
#### Defined in
948948

949-
[src/transformer/resolve-leetspeak/index.ts:23](https://github.com/jo3-l/obscenity/blob/0d1046d/src/transformer/resolve-leetspeak/index.ts#L23)
949+
[src/transformer/resolve-leetspeak/index.ts:23](https://github.com/jo3-l/obscenity/blob/0299b49/src/transformer/resolve-leetspeak/index.ts#L23)
950950

951951
___
952952

@@ -988,7 +988,7 @@ A container holding the transformer, which can then be passed to the
988988

989989
#### Defined in
990990

991-
[src/transformer/skip-non-alphabetic/index.ts:31](https://github.com/jo3-l/obscenity/blob/0d1046d/src/transformer/skip-non-alphabetic/index.ts#L31)
991+
[src/transformer/skip-non-alphabetic/index.ts:31](https://github.com/jo3-l/obscenity/blob/0299b49/src/transformer/skip-non-alphabetic/index.ts#L31)
992992

993993
___
994994

@@ -1015,4 +1015,4 @@ A container holding the transformer, which can then be passed to the
10151015

10161016
#### Defined in
10171017

1018-
[src/transformer/to-ascii-lowercase/index.ts:18](https://github.com/jo3-l/obscenity/blob/0d1046d/src/transformer/to-ascii-lowercase/index.ts#L18)
1018+
[src/transformer/to-ascii-lowercase/index.ts:18](https://github.com/jo3-l/obscenity/blob/0299b49/src/transformer/to-ascii-lowercase/index.ts#L18)

docs/reference/classes/DataSet.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const customDataset = new DataSet().addAll(englishDataset);
6363

6464
#### Defined in
6565

66-
[src/dataset/DataSet.ts:29](https://github.com/jo3-l/obscenity/blob/0d1046d/src/dataset/DataSet.ts#L29)
66+
[src/dataset/DataSet.ts:29](https://github.com/jo3-l/obscenity/blob/0299b49/src/dataset/DataSet.ts#L29)
6767

6868
___
6969

@@ -96,7 +96,7 @@ const data = new DataSet<{ originalWord: string }>()
9696

9797
#### Defined in
9898

99-
[src/dataset/DataSet.ts:75](https://github.com/jo3-l/obscenity/blob/0d1046d/src/dataset/DataSet.ts#L75)
99+
[src/dataset/DataSet.ts:75](https://github.com/jo3-l/obscenity/blob/0299b49/src/dataset/DataSet.ts#L75)
100100

101101
___
102102

@@ -122,7 +122,7 @@ const matcher = new RegExpMatcher({
122122

123123
#### Defined in
124124

125-
[src/dataset/DataSet.ts:118](https://github.com/jo3-l/obscenity/blob/0d1046d/src/dataset/DataSet.ts#L118)
125+
[src/dataset/DataSet.ts:118](https://github.com/jo3-l/obscenity/blob/0299b49/src/dataset/DataSet.ts#L118)
126126

127127
___
128128

@@ -154,7 +154,7 @@ const phraseMetadata = matchesWithPhraseMetadata[0].phraseMetadata;
154154

155155
#### Defined in
156156

157-
[src/dataset/DataSet.ts:94](https://github.com/jo3-l/obscenity/blob/0d1046d/src/dataset/DataSet.ts#L94)
157+
[src/dataset/DataSet.ts:94](https://github.com/jo3-l/obscenity/blob/0299b49/src/dataset/DataSet.ts#L94)
158158

159159
___
160160

@@ -184,4 +184,4 @@ const customDataset = new DataSet<{ originalWord: string }>()
184184

185185
#### Defined in
186186

187-
[src/dataset/DataSet.ts:46](https://github.com/jo3-l/obscenity/blob/0d1046d/src/dataset/DataSet.ts#L46)
187+
[src/dataset/DataSet.ts:46](https://github.com/jo3-l/obscenity/blob/0299b49/src/dataset/DataSet.ts#L46)

docs/reference/classes/ParserError.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Error.constructor
4444

4545
#### Defined in
4646

47-
[src/pattern/ParserError.ts:18](https://github.com/jo3-l/obscenity/blob/0d1046d/src/pattern/ParserError.ts#L18)
47+
[src/pattern/ParserError.ts:18](https://github.com/jo3-l/obscenity/blob/0299b49/src/pattern/ParserError.ts#L18)
4848

4949
## Properties
5050

@@ -57,7 +57,7 @@ Note that surrogate pairs are counted as 1 column wide, not 2.
5757

5858
#### Defined in
5959

60-
[src/pattern/ParserError.ts:16](https://github.com/jo3-l/obscenity/blob/0d1046d/src/pattern/ParserError.ts#L16)
60+
[src/pattern/ParserError.ts:16](https://github.com/jo3-l/obscenity/blob/0299b49/src/pattern/ParserError.ts#L16)
6161

6262
___
6363

@@ -69,7 +69,7 @@ The line on which the error occurred (one-based).
6969

7070
#### Defined in
7171

72-
[src/pattern/ParserError.ts:10](https://github.com/jo3-l/obscenity/blob/0d1046d/src/pattern/ParserError.ts#L10)
72+
[src/pattern/ParserError.ts:10](https://github.com/jo3-l/obscenity/blob/0299b49/src/pattern/ParserError.ts#L10)
7373

7474
___
7575

@@ -97,7 +97,7 @@ Error.name
9797

9898
#### Defined in
9999

100-
[src/pattern/ParserError.ts:5](https://github.com/jo3-l/obscenity/blob/0d1046d/src/pattern/ParserError.ts#L5)
100+
[src/pattern/ParserError.ts:5](https://github.com/jo3-l/obscenity/blob/0299b49/src/pattern/ParserError.ts#L5)
101101

102102
___
103103

docs/reference/classes/PhraseBuilder.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Associates a pattern with this phrase.
5555

5656
#### Defined in
5757

58-
[src/dataset/DataSet.ts:149](https://github.com/jo3-l/obscenity/blob/0d1046d/src/dataset/DataSet.ts#L149)
58+
[src/dataset/DataSet.ts:149](https://github.com/jo3-l/obscenity/blob/0299b49/src/dataset/DataSet.ts#L149)
5959

6060
___
6161

@@ -77,7 +77,7 @@ Associates a whitelisted pattern with this phrase.
7777

7878
#### Defined in
7979

80-
[src/dataset/DataSet.ts:159](https://github.com/jo3-l/obscenity/blob/0d1046d/src/dataset/DataSet.ts#L159)
80+
[src/dataset/DataSet.ts:159](https://github.com/jo3-l/obscenity/blob/0299b49/src/dataset/DataSet.ts#L159)
8181

8282
___
8383

@@ -94,7 +94,7 @@ Builds the phrase, returning a [[PhraseContainer]] for use with the
9494

9595
#### Defined in
9696

97-
[src/dataset/DataSet.ts:178](https://github.com/jo3-l/obscenity/blob/0d1046d/src/dataset/DataSet.ts#L178)
97+
[src/dataset/DataSet.ts:178](https://github.com/jo3-l/obscenity/blob/0299b49/src/dataset/DataSet.ts#L178)
9898

9999
___
100100

@@ -116,4 +116,4 @@ Associates some metadata with this phrase.
116116

117117
#### Defined in
118118

119-
[src/dataset/DataSet.ts:169](https://github.com/jo3-l/obscenity/blob/0d1046d/src/dataset/DataSet.ts#L169)
119+
[src/dataset/DataSet.ts:169](https://github.com/jo3-l/obscenity/blob/0299b49/src/dataset/DataSet.ts#L169)

docs/reference/classes/RegExpMatcher.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ console.log(matcher.getAllMatches('fu.....uuuuCK the pen is mightier than the sw
8686

8787
#### Defined in
8888

89-
[src/matcher/regexp/RegExpMatcher.ts:74](https://github.com/jo3-l/obscenity/blob/0d1046d/src/matcher/regexp/RegExpMatcher.ts#L74)
89+
[src/matcher/regexp/RegExpMatcher.ts:74](https://github.com/jo3-l/obscenity/blob/0299b49/src/matcher/regexp/RegExpMatcher.ts#L74)
9090

9191
## Methods
9292

@@ -121,7 +121,7 @@ otherwise, their order is unspecified.
121121

122122
#### Defined in
123123

124-
[src/matcher/regexp/RegExpMatcher.ts:87](https://github.com/jo3-l/obscenity/blob/0d1046d/src/matcher/regexp/RegExpMatcher.ts#L87)
124+
[src/matcher/regexp/RegExpMatcher.ts:87](https://github.com/jo3-l/obscenity/blob/0299b49/src/matcher/regexp/RegExpMatcher.ts#L87)
125125

126126
___
127127

@@ -150,4 +150,4 @@ checking the result, though it depends on the implementation.
150150

151151
#### Defined in
152152

153-
[src/matcher/regexp/RegExpMatcher.ts:120](https://github.com/jo3-l/obscenity/blob/0d1046d/src/matcher/regexp/RegExpMatcher.ts#L120)
153+
[src/matcher/regexp/RegExpMatcher.ts:120](https://github.com/jo3-l/obscenity/blob/0299b49/src/matcher/regexp/RegExpMatcher.ts#L120)

0 commit comments

Comments
 (0)