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 6621cea commit b070d8aCopy full SHA for b070d8a
protocol-designer/src/pages/Designer/ProtocolSteps/Timeline/utils.ts
@@ -9,7 +9,7 @@ export const capitalizeFirstLetterAfterNumber = (title: string): string =>
9
title.replace(
10
/(^[\d\W]*)([a-zA-Z])|(-[a-zA-Z])/g,
11
(match, prefix, firstLetter) => {
12
- if (prefix) {
+ if (prefix != null) {
13
return `${prefix}${firstLetter.toUpperCase()}`
14
} else {
15
return `${match.charAt(0)}${match.charAt(1).toUpperCase()}`
0 commit comments