« get me outta code hell

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:
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);
 }