stricklandrbls commented on code in PR #1384:
URL: https://github.com/apache/daffodil-vscode/pull/1384#discussion_r2326430412


##########
src/adapter/activateDaffodilDebug.ts:
##########
@@ -103,6 +103,18 @@ function normalizePath(path: string): string {
   return path
 }
 
+/**
+ * Configures the file path string of an intended TDML save file if the
+ * extension is malformed.
+ * @param pathStr
+ * @returns file path string with a valid TDML file extension.
+ */
+function validateTDMLFilePath(pathStr: string): string {
+  return !pathStr.match(/.*tdml[.]xml|.*tdml$/gm)

Review Comment:
   Yeah good catch. I had that extension string in mind from when I was trying 
to utilize a function about it's filepath which strips the `.` and just gives 
you the extension text.
   
   Resolved this with the latest commit.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to