Skip to content

Commit

Permalink
fix broken action on content name w parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
VargaJoe committed Mar 25, 2022
1 parent 6163de4 commit 1919ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sn-client-utils/src/path-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class PathHelper {
* @param segment The segment to be examined
*/
public static isItemSegment(segment: string): boolean {
return RegExp(/\('+[\s\S]+'\)$/).test(segment) || RegExp(/\(+\w+\d+\)$/).test(segment)
return RegExp(/^\('+[\s\S]+'\)$/).test(segment) || RegExp(/^\(+\w+\d+\)$/).test(segment)
}

/**
Expand Down

2 comments on commit 1919ad1

@VargaJoe
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong solution

question: what are item segments for?
"Checks if a specific segment is an Item segment or not (like "('Content1')" or "Test(1)")"

Where are we use Test(1) format?

@VargaJoe
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nor original regex matches with sample paths

Please sign in to comment.