Is there a ready-made method for verifying the validity of windows file paths in vue?

I found a lot of things on the Internet that didn"t work, even the most common ones:
c:\ 1.exe

          var winpath = /^[a-zA-Z]:(([a-zA-Z]*)||([a-zA-Z]*\\))*$/;
          if (winpath.test(value)) {
            callback();
          } else {
            callback(new Error(""));
          }
Mar.09,2021

vue, regardless of this

as the input check of the windows path, see code
to operate the path, or use path module

.
Menu