We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe2363c commit 652bf4fCopy full SHA for 652bf4f
src/lib/output/helpers/wbr.ts
@@ -12,6 +12,8 @@ export function wbr(options: any): Handlebars.SafeString {
12
let str = typeof options === 'string' ? options : options.fn(this);
13
str = Handlebars.escapeExpression(str);
14
15
+ str = str.replace(/=/g, '='); // because 3D would be converted to 3<wbr>D, use decimal format instead
16
+
17
str = str.replace(/([^_\-][_\-])([^_\-])/g, (m: string, a: string, b: string) => a + '<wbr>' + b);
18
str = str.replace(/([^A-Z])([A-Z][^A-Z])/g, (m: string, a: string, b: string) => a + '<wbr>' + b);
19
0 commit comments