Skip to content

Commit e555273

Browse files
fixed issue with the disappearing diget "2"
1 parent a1a2fdd commit e555273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/hooks/create-excerpt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = function (options = {}) { // eslint-disable-line no-unused-vars
3232
}
3333
}
3434
hook.data[options.field] = hook.data[options.field]
35-
.replace(/(\ )[2,]/ig, ' ')
35+
.replace(/(\ ){2,}/ig, ' ')
3636

3737
return Promise.resolve(hook);
3838
};

0 commit comments

Comments
 (0)