scholarsmate commented on code in PR #1384:
URL: https://github.com/apache/daffodil-vscode/pull/1384#discussion_r2325681404
##########
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:
Probably ought to make sure the file name ends with `.tdml` not just `tdml`
(e.g., foo.tdml vs footdml).
--
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]