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 d0495dc commit f983124Copy full SHA for f983124
src/utils/common.ts
@@ -5,8 +5,8 @@
5
* @returns Parameter string with array brackets [] removed.
6
*/
7
export const stripArrayTypeIfPresent = (typeString: string) => {
8
- if (typeString?.match(/\S\s*\[\]$/u) !== null) {
9
- return typeString.replace(/\s*\[\]$/gu, '').trim();
+ if (typeString?.match(/\S\[\]$/u) !== null) {
+ return typeString.replace(/\[\]$/gu, '').trim();
10
}
11
return typeString;
12
};
0 commit comments