Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into mdx-ie11
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonjoseph committed Apr 15, 2019
2 parents e374df1 + 57606a1 commit f64838c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/NextPrevious/NextPrevious.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class NextPrevious extends React.Component {
* e.g.converts "Item Name" to "item-name"
*/
titleToSlug = string => {
if (string) return string.toLowerCase().replace(' ', '-');
if (string) return string.toLowerCase().replace(/[ ]/g, '-');
};

/**
Expand Down

0 comments on commit f64838c

Please sign in to comment.