@sc-voice/tools 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-voice/tools",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Utilities for SC-Voice",
5
5
  "main": "index.mjs",
6
6
  "files": [
@@ -133,9 +133,9 @@ export class WordMapTransformer {
133
133
  static normalizeFR(s) {
134
134
  return s
135
135
  .replace(/[«»]/gi, '')
136
- .replace(/\bd’/gi, 'de ')
137
- .replace(/\bl’/gi, 'le ')
138
- .replace(/\bs’/gi, 'se ')
136
+ .replace(/\bd[’']/gi, 'de ')
137
+ .replace(/\bl[’']/gi, 'le ')
138
+ .replace(/\bs[’']/gi, 'se ')
139
139
  .replace('?', '$QUESTION')
140
140
  .replace('!', '$EXCLAMATION')
141
141
  .trim();