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 a1a2fdd commit e555273Copy full SHA for e555273
server/hooks/create-excerpt.js
@@ -32,7 +32,7 @@ module.exports = function (options = {}) { // eslint-disable-line no-unused-vars
32
}
33
34
hook.data[options.field] = hook.data[options.field]
35
- .replace(/(\ )[2,]/ig, ' ')
+ .replace(/(\ ){2,}/ig, ' ')
36
37
return Promise.resolve(hook);
38
};
0 commit comments