« get me outta code hell

wiki info - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/thing/validators.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-02-03 21:56:27 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-02-03 21:56:38 -0400
commit80ef2108d9ce2ee5bb8c3cae562a7257710a7f23 (patch)
treef14daa07b516d4f9c9fd7f97cb80c1c1a689c22e /src/thing/validators.js
parentf8e4c8e3ffc6da224699db15d13a02ed8b4e49e5 (diff)
wiki info
Diffstat (limited to 'src/thing/validators.js')
-rw-r--r--src/thing/validators.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/thing/validators.js b/src/thing/validators.js
index 4946347..1bc7fd7 100644
--- a/src/thing/validators.js
+++ b/src/thing/validators.js
@@ -241,6 +241,15 @@ export function isFileExtension(string) {
     return true;
 }
 
+export function isLanguageCode(string) {
+    // TODO: This is a stub function because really we don't need a detailed
+    // is-language-code parser right now.
+
+    isString(string);
+
+    return true;
+}
+
 export function isName(name) {
     return isString(name);
 }